drivelabels
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package drivelabels provides access to the Drive Labels API.
For product documentation, see:https://developers.google.com/workspace/drive/labels
Library status¶
These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.
When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.
Creating a client¶
Usage example:
import "google.golang.org/api/drivelabels/v2"...ctx := context.Background()drivelabelsService, err := drivelabels.NewService(ctx)
In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options¶
By default, all available scopes (see "Constants") are used to authenticate.To restrict scopes, usegoogle.golang.org/api/option.WithScopes:
drivelabelsService, err := drivelabels.NewService(ctx, option.WithScopes(drivelabels.DriveLabelsReadonlyScope))
To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:
drivelabelsService, err := drivelabels.NewService(ctx, option.WithAPIKey("AIza..."))To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)drivelabelsService, err := drivelabels.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seegoogle.golang.org/api/option.ClientOption for details on options.
Index¶
- Constants
- type GoogleAppsDriveLabelsV2BadgeColors
- type GoogleAppsDriveLabelsV2BadgeConfig
- type GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest
- type GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest
- type GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse
- type GoogleAppsDriveLabelsV2DateLimits
- type GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse
- type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse
- type GoogleAppsDriveLabelsV2DisableLabelRequest
- type GoogleAppsDriveLabelsV2EnableLabelRequest
- type GoogleAppsDriveLabelsV2Field
- type GoogleAppsDriveLabelsV2FieldAppliedCapabilities
- type GoogleAppsDriveLabelsV2FieldDateOptions
- type GoogleAppsDriveLabelsV2FieldDisplayHints
- type GoogleAppsDriveLabelsV2FieldIntegerOptions
- type GoogleAppsDriveLabelsV2FieldLimits
- type GoogleAppsDriveLabelsV2FieldListOptions
- type GoogleAppsDriveLabelsV2FieldProperties
- type GoogleAppsDriveLabelsV2FieldSchemaCapabilities
- type GoogleAppsDriveLabelsV2FieldSelectionOptions
- type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice
- type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities
- type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints
- type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties
- type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities
- type GoogleAppsDriveLabelsV2FieldTextOptions
- type GoogleAppsDriveLabelsV2FieldUserOptions
- type GoogleAppsDriveLabelsV2IntegerLimits
- type GoogleAppsDriveLabelsV2Label
- type GoogleAppsDriveLabelsV2LabelAppliedCapabilities
- type GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy
- type GoogleAppsDriveLabelsV2LabelDisplayHints
- type GoogleAppsDriveLabelsV2LabelEnabledAppSettings
- type GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp
- type GoogleAppsDriveLabelsV2LabelLimits
- type GoogleAppsDriveLabelsV2LabelLock
- type GoogleAppsDriveLabelsV2LabelLockCapabilities
- type GoogleAppsDriveLabelsV2LabelPermission
- type GoogleAppsDriveLabelsV2LabelProperties
- type GoogleAppsDriveLabelsV2LabelSchemaCapabilities
- type GoogleAppsDriveLabelsV2Lifecycle
- type GoogleAppsDriveLabelsV2LifecycleDisabledPolicy
- type GoogleAppsDriveLabelsV2ListLabelLocksResponse
- type GoogleAppsDriveLabelsV2ListLabelPermissionsResponse
- type GoogleAppsDriveLabelsV2ListLabelsResponse
- type GoogleAppsDriveLabelsV2ListLimits
- type GoogleAppsDriveLabelsV2LockStatus
- type GoogleAppsDriveLabelsV2LongTextLimits
- type GoogleAppsDriveLabelsV2PublishLabelRequest
- type GoogleAppsDriveLabelsV2SelectionLimits
- type GoogleAppsDriveLabelsV2TextLimits
- type GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest
- type GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest
- type GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest
- type GoogleAppsDriveLabelsV2UserCapabilities
- type GoogleAppsDriveLabelsV2UserInfo
- type GoogleAppsDriveLabelsV2UserLimits
- type GoogleAppsDriveLabelsV2WriteControl
- type GoogleProtobufEmpty
- type GoogleTypeColor
- type GoogleTypeDate
- type LabelsCreateCall
- func (c *LabelsCreateCall) Context(ctx context.Context) *LabelsCreateCall
- func (c *LabelsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2Label, error)
- func (c *LabelsCreateCall) Fields(s ...googleapi.Field) *LabelsCreateCall
- func (c *LabelsCreateCall) Header() http.Header
- func (c *LabelsCreateCall) LanguageCode(languageCode string) *LabelsCreateCall
- func (c *LabelsCreateCall) UseAdminAccess(useAdminAccess bool) *LabelsCreateCall
- type LabelsDeleteCall
- func (c *LabelsDeleteCall) Context(ctx context.Context) *LabelsDeleteCall
- func (c *LabelsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *LabelsDeleteCall) Fields(s ...googleapi.Field) *LabelsDeleteCall
- func (c *LabelsDeleteCall) Header() http.Header
- func (c *LabelsDeleteCall) UseAdminAccess(useAdminAccess bool) *LabelsDeleteCall
- func (c *LabelsDeleteCall) WriteControlRequiredRevisionId(writeControlRequiredRevisionId string) *LabelsDeleteCall
- type LabelsDeltaCall
- func (c *LabelsDeltaCall) Context(ctx context.Context) *LabelsDeltaCall
- func (c *LabelsDeltaCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse, error)
- func (c *LabelsDeltaCall) Fields(s ...googleapi.Field) *LabelsDeltaCall
- func (c *LabelsDeltaCall) Header() http.Header
- type LabelsDisableCall
- type LabelsEnableCall
- type LabelsGetCall
- func (c *LabelsGetCall) Context(ctx context.Context) *LabelsGetCall
- func (c *LabelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2Label, error)
- func (c *LabelsGetCall) Fields(s ...googleapi.Field) *LabelsGetCall
- func (c *LabelsGetCall) Header() http.Header
- func (c *LabelsGetCall) IfNoneMatch(entityTag string) *LabelsGetCall
- func (c *LabelsGetCall) LanguageCode(languageCode string) *LabelsGetCall
- func (c *LabelsGetCall) UseAdminAccess(useAdminAccess bool) *LabelsGetCall
- func (c *LabelsGetCall) View(view string) *LabelsGetCall
- type LabelsListCall
- func (c *LabelsListCall) Context(ctx context.Context) *LabelsListCall
- func (c *LabelsListCall) Customer(customer string) *LabelsListCall
- func (c *LabelsListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2ListLabelsResponse, error)
- func (c *LabelsListCall) Fields(s ...googleapi.Field) *LabelsListCall
- func (c *LabelsListCall) Header() http.Header
- func (c *LabelsListCall) IfNoneMatch(entityTag string) *LabelsListCall
- func (c *LabelsListCall) LanguageCode(languageCode string) *LabelsListCall
- func (c *LabelsListCall) MinimumRole(minimumRole string) *LabelsListCall
- func (c *LabelsListCall) PageSize(pageSize int64) *LabelsListCall
- func (c *LabelsListCall) PageToken(pageToken string) *LabelsListCall
- func (c *LabelsListCall) Pages(ctx context.Context, f func(*GoogleAppsDriveLabelsV2ListLabelsResponse) error) error
- func (c *LabelsListCall) PublishedOnly(publishedOnly bool) *LabelsListCall
- func (c *LabelsListCall) UseAdminAccess(useAdminAccess bool) *LabelsListCall
- func (c *LabelsListCall) View(view string) *LabelsListCall
- type LabelsLocksListCall
- func (c *LabelsLocksListCall) Context(ctx context.Context) *LabelsLocksListCall
- func (c *LabelsLocksListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2ListLabelLocksResponse, error)
- func (c *LabelsLocksListCall) Fields(s ...googleapi.Field) *LabelsLocksListCall
- func (c *LabelsLocksListCall) Header() http.Header
- func (c *LabelsLocksListCall) IfNoneMatch(entityTag string) *LabelsLocksListCall
- func (c *LabelsLocksListCall) PageSize(pageSize int64) *LabelsLocksListCall
- func (c *LabelsLocksListCall) PageToken(pageToken string) *LabelsLocksListCall
- func (c *LabelsLocksListCall) Pages(ctx context.Context, ...) error
- type LabelsLocksService
- type LabelsPermissionsBatchDeleteCall
- func (c *LabelsPermissionsBatchDeleteCall) Context(ctx context.Context) *LabelsPermissionsBatchDeleteCall
- func (c *LabelsPermissionsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *LabelsPermissionsBatchDeleteCall) Fields(s ...googleapi.Field) *LabelsPermissionsBatchDeleteCall
- func (c *LabelsPermissionsBatchDeleteCall) Header() http.Header
- type LabelsPermissionsBatchUpdateCall
- func (c *LabelsPermissionsBatchUpdateCall) Context(ctx context.Context) *LabelsPermissionsBatchUpdateCall
- func (c *LabelsPermissionsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse, error)
- func (c *LabelsPermissionsBatchUpdateCall) Fields(s ...googleapi.Field) *LabelsPermissionsBatchUpdateCall
- func (c *LabelsPermissionsBatchUpdateCall) Header() http.Header
- type LabelsPermissionsCreateCall
- func (c *LabelsPermissionsCreateCall) Context(ctx context.Context) *LabelsPermissionsCreateCall
- func (c *LabelsPermissionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2LabelPermission, error)
- func (c *LabelsPermissionsCreateCall) Fields(s ...googleapi.Field) *LabelsPermissionsCreateCall
- func (c *LabelsPermissionsCreateCall) Header() http.Header
- func (c *LabelsPermissionsCreateCall) UseAdminAccess(useAdminAccess bool) *LabelsPermissionsCreateCall
- type LabelsPermissionsDeleteCall
- func (c *LabelsPermissionsDeleteCall) Context(ctx context.Context) *LabelsPermissionsDeleteCall
- func (c *LabelsPermissionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *LabelsPermissionsDeleteCall) Fields(s ...googleapi.Field) *LabelsPermissionsDeleteCall
- func (c *LabelsPermissionsDeleteCall) Header() http.Header
- func (c *LabelsPermissionsDeleteCall) UseAdminAccess(useAdminAccess bool) *LabelsPermissionsDeleteCall
- type LabelsPermissionsListCall
- func (c *LabelsPermissionsListCall) Context(ctx context.Context) *LabelsPermissionsListCall
- func (c *LabelsPermissionsListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2ListLabelPermissionsResponse, error)
- func (c *LabelsPermissionsListCall) Fields(s ...googleapi.Field) *LabelsPermissionsListCall
- func (c *LabelsPermissionsListCall) Header() http.Header
- func (c *LabelsPermissionsListCall) IfNoneMatch(entityTag string) *LabelsPermissionsListCall
- func (c *LabelsPermissionsListCall) PageSize(pageSize int64) *LabelsPermissionsListCall
- func (c *LabelsPermissionsListCall) PageToken(pageToken string) *LabelsPermissionsListCall
- func (c *LabelsPermissionsListCall) Pages(ctx context.Context, ...) error
- func (c *LabelsPermissionsListCall) UseAdminAccess(useAdminAccess bool) *LabelsPermissionsListCall
- type LabelsPermissionsService
- func (r *LabelsPermissionsService) BatchDelete(parent string, ...) *LabelsPermissionsBatchDeleteCall
- func (r *LabelsPermissionsService) BatchUpdate(parent string, ...) *LabelsPermissionsBatchUpdateCall
- func (r *LabelsPermissionsService) Create(parent string, ...) *LabelsPermissionsCreateCall
- func (r *LabelsPermissionsService) Delete(name string) *LabelsPermissionsDeleteCall
- func (r *LabelsPermissionsService) List(parent string) *LabelsPermissionsListCall
- type LabelsPublishCall
- type LabelsRevisionsLocksListCall
- func (c *LabelsRevisionsLocksListCall) Context(ctx context.Context) *LabelsRevisionsLocksListCall
- func (c *LabelsRevisionsLocksListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2ListLabelLocksResponse, error)
- func (c *LabelsRevisionsLocksListCall) Fields(s ...googleapi.Field) *LabelsRevisionsLocksListCall
- func (c *LabelsRevisionsLocksListCall) Header() http.Header
- func (c *LabelsRevisionsLocksListCall) IfNoneMatch(entityTag string) *LabelsRevisionsLocksListCall
- func (c *LabelsRevisionsLocksListCall) PageSize(pageSize int64) *LabelsRevisionsLocksListCall
- func (c *LabelsRevisionsLocksListCall) PageToken(pageToken string) *LabelsRevisionsLocksListCall
- func (c *LabelsRevisionsLocksListCall) Pages(ctx context.Context, ...) error
- type LabelsRevisionsLocksService
- type LabelsRevisionsPermissionsBatchDeleteCall
- func (c *LabelsRevisionsPermissionsBatchDeleteCall) Context(ctx context.Context) *LabelsRevisionsPermissionsBatchDeleteCall
- func (c *LabelsRevisionsPermissionsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *LabelsRevisionsPermissionsBatchDeleteCall) Fields(s ...googleapi.Field) *LabelsRevisionsPermissionsBatchDeleteCall
- func (c *LabelsRevisionsPermissionsBatchDeleteCall) Header() http.Header
- type LabelsRevisionsPermissionsBatchUpdateCall
- func (c *LabelsRevisionsPermissionsBatchUpdateCall) Context(ctx context.Context) *LabelsRevisionsPermissionsBatchUpdateCall
- func (c *LabelsRevisionsPermissionsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse, error)
- func (c *LabelsRevisionsPermissionsBatchUpdateCall) Fields(s ...googleapi.Field) *LabelsRevisionsPermissionsBatchUpdateCall
- func (c *LabelsRevisionsPermissionsBatchUpdateCall) Header() http.Header
- type LabelsRevisionsPermissionsCreateCall
- func (c *LabelsRevisionsPermissionsCreateCall) Context(ctx context.Context) *LabelsRevisionsPermissionsCreateCall
- func (c *LabelsRevisionsPermissionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2LabelPermission, error)
- func (c *LabelsRevisionsPermissionsCreateCall) Fields(s ...googleapi.Field) *LabelsRevisionsPermissionsCreateCall
- func (c *LabelsRevisionsPermissionsCreateCall) Header() http.Header
- func (c *LabelsRevisionsPermissionsCreateCall) UseAdminAccess(useAdminAccess bool) *LabelsRevisionsPermissionsCreateCall
- type LabelsRevisionsPermissionsDeleteCall
- func (c *LabelsRevisionsPermissionsDeleteCall) Context(ctx context.Context) *LabelsRevisionsPermissionsDeleteCall
- func (c *LabelsRevisionsPermissionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *LabelsRevisionsPermissionsDeleteCall) Fields(s ...googleapi.Field) *LabelsRevisionsPermissionsDeleteCall
- func (c *LabelsRevisionsPermissionsDeleteCall) Header() http.Header
- func (c *LabelsRevisionsPermissionsDeleteCall) UseAdminAccess(useAdminAccess bool) *LabelsRevisionsPermissionsDeleteCall
- type LabelsRevisionsPermissionsListCall
- func (c *LabelsRevisionsPermissionsListCall) Context(ctx context.Context) *LabelsRevisionsPermissionsListCall
- func (c *LabelsRevisionsPermissionsListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2ListLabelPermissionsResponse, error)
- func (c *LabelsRevisionsPermissionsListCall) Fields(s ...googleapi.Field) *LabelsRevisionsPermissionsListCall
- func (c *LabelsRevisionsPermissionsListCall) Header() http.Header
- func (c *LabelsRevisionsPermissionsListCall) IfNoneMatch(entityTag string) *LabelsRevisionsPermissionsListCall
- func (c *LabelsRevisionsPermissionsListCall) PageSize(pageSize int64) *LabelsRevisionsPermissionsListCall
- func (c *LabelsRevisionsPermissionsListCall) PageToken(pageToken string) *LabelsRevisionsPermissionsListCall
- func (c *LabelsRevisionsPermissionsListCall) Pages(ctx context.Context, ...) error
- func (c *LabelsRevisionsPermissionsListCall) UseAdminAccess(useAdminAccess bool) *LabelsRevisionsPermissionsListCall
- type LabelsRevisionsPermissionsService
- func (r *LabelsRevisionsPermissionsService) BatchDelete(parent string, ...) *LabelsRevisionsPermissionsBatchDeleteCall
- func (r *LabelsRevisionsPermissionsService) BatchUpdate(parent string, ...) *LabelsRevisionsPermissionsBatchUpdateCall
- func (r *LabelsRevisionsPermissionsService) Create(parent string, ...) *LabelsRevisionsPermissionsCreateCall
- func (r *LabelsRevisionsPermissionsService) Delete(name string) *LabelsRevisionsPermissionsDeleteCall
- func (r *LabelsRevisionsPermissionsService) List(parent string) *LabelsRevisionsPermissionsListCall
- type LabelsRevisionsService
- type LabelsRevisionsUpdatePermissionsCall
- func (c *LabelsRevisionsUpdatePermissionsCall) Context(ctx context.Context) *LabelsRevisionsUpdatePermissionsCall
- func (c *LabelsRevisionsUpdatePermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2LabelPermission, error)
- func (c *LabelsRevisionsUpdatePermissionsCall) Fields(s ...googleapi.Field) *LabelsRevisionsUpdatePermissionsCall
- func (c *LabelsRevisionsUpdatePermissionsCall) Header() http.Header
- func (c *LabelsRevisionsUpdatePermissionsCall) UseAdminAccess(useAdminAccess bool) *LabelsRevisionsUpdatePermissionsCall
- type LabelsService
- func (r *LabelsService) Create(googleappsdrivelabelsv2label *GoogleAppsDriveLabelsV2Label) *LabelsCreateCall
- func (r *LabelsService) Delete(name string) *LabelsDeleteCall
- func (r *LabelsService) Delta(name string, ...) *LabelsDeltaCall
- func (r *LabelsService) Disable(name string, ...) *LabelsDisableCall
- func (r *LabelsService) Enable(name string, ...) *LabelsEnableCall
- func (r *LabelsService) Get(name string) *LabelsGetCall
- func (r *LabelsService) List() *LabelsListCall
- func (r *LabelsService) Publish(name string, ...) *LabelsPublishCall
- func (r *LabelsService) UpdateLabelCopyMode(name string, ...) *LabelsUpdateLabelCopyModeCall
- func (r *LabelsService) UpdateLabelEnabledAppSettings(name string, ...) *LabelsUpdateLabelEnabledAppSettingsCall
- func (r *LabelsService) UpdatePermissions(parent string, ...) *LabelsUpdatePermissionsCall
- type LabelsUpdateLabelCopyModeCall
- func (c *LabelsUpdateLabelCopyModeCall) Context(ctx context.Context) *LabelsUpdateLabelCopyModeCall
- func (c *LabelsUpdateLabelCopyModeCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2Label, error)
- func (c *LabelsUpdateLabelCopyModeCall) Fields(s ...googleapi.Field) *LabelsUpdateLabelCopyModeCall
- func (c *LabelsUpdateLabelCopyModeCall) Header() http.Header
- type LabelsUpdateLabelEnabledAppSettingsCall
- func (c *LabelsUpdateLabelEnabledAppSettingsCall) Context(ctx context.Context) *LabelsUpdateLabelEnabledAppSettingsCall
- func (c *LabelsUpdateLabelEnabledAppSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2Label, error)
- func (c *LabelsUpdateLabelEnabledAppSettingsCall) Fields(s ...googleapi.Field) *LabelsUpdateLabelEnabledAppSettingsCall
- func (c *LabelsUpdateLabelEnabledAppSettingsCall) Header() http.Header
- type LabelsUpdatePermissionsCall
- func (c *LabelsUpdatePermissionsCall) Context(ctx context.Context) *LabelsUpdatePermissionsCall
- func (c *LabelsUpdatePermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2LabelPermission, error)
- func (c *LabelsUpdatePermissionsCall) Fields(s ...googleapi.Field) *LabelsUpdatePermissionsCall
- func (c *LabelsUpdatePermissionsCall) Header() http.Header
- func (c *LabelsUpdatePermissionsCall) UseAdminAccess(useAdminAccess bool) *LabelsUpdatePermissionsCall
- type LimitsGetLabelCall
- func (c *LimitsGetLabelCall) Context(ctx context.Context) *LimitsGetLabelCall
- func (c *LimitsGetLabelCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2LabelLimits, error)
- func (c *LimitsGetLabelCall) Fields(s ...googleapi.Field) *LimitsGetLabelCall
- func (c *LimitsGetLabelCall) Header() http.Header
- func (c *LimitsGetLabelCall) IfNoneMatch(entityTag string) *LimitsGetLabelCall
- func (c *LimitsGetLabelCall) Name(name string) *LimitsGetLabelCall
- type LimitsService
- type Service
- type UsersGetCapabilitiesCall
- func (c *UsersGetCapabilitiesCall) Context(ctx context.Context) *UsersGetCapabilitiesCall
- func (c *UsersGetCapabilitiesCall) Customer(customer string) *UsersGetCapabilitiesCall
- func (c *UsersGetCapabilitiesCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2UserCapabilities, error)
- func (c *UsersGetCapabilitiesCall) Fields(s ...googleapi.Field) *UsersGetCapabilitiesCall
- func (c *UsersGetCapabilitiesCall) Header() http.Header
- func (c *UsersGetCapabilitiesCall) IfNoneMatch(entityTag string) *UsersGetCapabilitiesCall
- type UsersService
Constants¶
const (// See, edit, create, and delete all Google Drive labels in your organization,// and see your organization's label-related admin policiesDriveAdminLabelsScope = "https://www.googleapis.com/auth/drive.admin.labels"// See all Google Drive labels and label-related admin policies in your// organizationDriveAdminLabelsReadonlyScope = "https://www.googleapis.com/auth/drive.admin.labels.readonly"// See, edit, create, and delete your Google Drive labelsDriveLabelsScope = "https://www.googleapis.com/auth/drive.labels"// See your Google Drive labelsDriveLabelsReadonlyScope = "https://www.googleapis.com/auth/drive.labels.readonly")
OAuth2 scopes used by this API.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeGoogleAppsDriveLabelsV2BadgeColors¶
type GoogleAppsDriveLabelsV2BadgeColors struct {// BackgroundColor: Output only. Badge background that pairs with the// foreground.BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"`// ForegroundColor: Output only. Badge foreground that pairs with the// background.ForegroundColor *GoogleTypeColor `json:"foregroundColor,omitempty"`// SoloColor: Output only. Color that can be used for text without a// background.SoloColor *GoogleTypeColor `json:"soloColor,omitempty"`// ForceSendFields is a list of field names (e.g. "BackgroundColor") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BackgroundColor") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2BadgeColors: The color derived from BadgeConfig andchanged to the closest recommended supported color.
func (GoogleAppsDriveLabelsV2BadgeColors)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2BadgeColors) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2BadgeConfig¶
type GoogleAppsDriveLabelsV2BadgeConfig struct {// Color: The color of the badge. When not specified, no badge is rendered. The// background, foreground, and solo (light and dark mode) colors set here are// changed in the Drive UI into the closest recommended supported color.Color *GoogleTypeColor `json:"color,omitempty"`// PriorityOverride: Override the default global priority of this badge. When// set to 0, the default priority heuristic is used.PriorityOverrideint64 `json:"priorityOverride,omitempty,string"`// ForceSendFields is a list of field names (e.g. "Color") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Color") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2BadgeConfig: Badge status of the label.
func (GoogleAppsDriveLabelsV2BadgeConfig)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2BadgeConfig) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest struct {// Requests: Required. The request message specifying the resources to update.Requests []*GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest `json:"requests,omitempty"`// UseAdminAccess: Set to `true` in order to use the user's admin credentials.// The server will verify the user is an admin for the label before allowing// access. If this is set, the `use_admin_access` field in the// `DeleteLabelPermissionRequest` messages must either be empty or match this// field.UseAdminAccessbool `json:"useAdminAccess,omitempty"`// ForceSendFields is a list of field names (e.g. "Requests") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Requests") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest: Deletes one ormore label permissions.
func (GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest struct {// Requests: Required. The request message specifying the resources to update.Requests []*GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest `json:"requests,omitempty"`// UseAdminAccess: Set to `true` in order to use the user's admin credentials.// The server will verify the user is an admin for the label before allowing// access. If this is set, the `use_admin_access` field in the// `UpdateLabelPermissionRequest` messages must either be empty or match this// field.UseAdminAccessbool `json:"useAdminAccess,omitempty"`// ForceSendFields is a list of field names (e.g. "Requests") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Requests") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest: Updates one ormore label permissions.
func (GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse¶added inv0.112.0
type GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse struct {// Permissions: Required. Permissions updated.Permissions []*GoogleAppsDriveLabelsV2LabelPermission `json:"permissions,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Permissions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Permissions") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse: Response forupdating one or more label permissions.
func (GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DateLimits¶added inv0.112.0
type GoogleAppsDriveLabelsV2DateLimits struct {// MaxValue: Maximum value for the date field type.MaxValue *GoogleTypeDate `json:"maxValue,omitempty"`// MinValue: Minimum value for the date field type.MinValue *GoogleTypeDate `json:"minValue,omitempty"`// ForceSendFields is a list of field names (e.g. "MaxValue") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MaxValue") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DateLimits: Limits for date field type.
func (GoogleAppsDriveLabelsV2DateLimits)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DateLimits) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeleteLabelPermissionRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest struct {// Name: Required. Label permission resource name.Namestring `json:"name,omitempty"`// UseAdminAccess: Set to `true` in order to use the user's admin credentials.// The server will verify the user is an admin for the label before allowing// access.UseAdminAccessbool `json:"useAdminAccess,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest: Deletes a labelpermission. Permissions affect the label resource as a whole, aren'trevisioned, and don't require publishing.
func (GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeleteLabelPermissionRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest struct {// LanguageCode: The BCP-47 language code to use for evaluating localized field// labels when `include_label_in_response` is `true`.LanguageCodestring `json:"languageCode,omitempty"`// Requests: A list of updates to apply to the label. Requests will be applied// in the order they are specified.Requests []*GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest `json:"requests,omitempty"`// UseAdminAccess: Set to `true` in order to use the user's admin credentials.// The server will verify the user is an admin for the label before allowing// access.UseAdminAccessbool `json:"useAdminAccess,omitempty"`// View: When specified, only certain fields belonging to the indicated view// will be returned.//// Possible values:// "LABEL_VIEW_BASIC" - Implies the field mask:// `name,id,revision_id,label_type,properties.*`// "LABEL_VIEW_FULL" - All possible fields.Viewstring `json:"view,omitempty"`// WriteControl: Provides control over how write requests are executed.WriteControl *GoogleAppsDriveLabelsV2WriteControl `json:"writeControl,omitempty"`// ForceSendFields is a list of field names (e.g. "LanguageCode") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LanguageCode") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest: The set of requests forupdating aspects of a label. If any request isn't valid, no requests will beapplied.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeltaUpdateLabelRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest struct {// Field: Required. Field to create.Field *GoogleAppsDriveLabelsV2Field `json:"field,omitempty"`// ForceSendFields is a list of field names (e.g. "Field") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Field") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest: Request tocreate a field within a label.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest struct {// Choice: Required. The choice to create.Choice *GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice `json:"choice,omitempty"`// FieldId: Required. The selection field in which a choice will be created.FieldIdstring `json:"fieldId,omitempty"`// ForceSendFields is a list of field names (e.g. "Choice") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Choice") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest:Request to create a selection choice.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest struct {// Id: Required. ID of the field to delete.Idstring `json:"id,omitempty"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest: Request todelete the field.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest struct {// FieldId: Required. The selection field from which a choice will be deleted.FieldIdstring `json:"fieldId,omitempty"`// Id: Required. Choice to delete.Idstring `json:"id,omitempty"`// ForceSendFields is a list of field names (e.g. "FieldId") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FieldId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest:Request to delete a choice.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest struct {// DisabledPolicy: Required. Field disabled policy.DisabledPolicy *GoogleAppsDriveLabelsV2LifecycleDisabledPolicy `json:"disabledPolicy,omitempty"`// Id: Required. Key of the field to disable.Idstring `json:"id,omitempty"`// UpdateMask: The fields that should be updated. At least one field must be// specified. The root `disabled_policy` is implied and should not be// specified. A single `*` can be used as a short-hand for updating every// field.UpdateMaskstring `json:"updateMask,omitempty"`// ForceSendFields is a list of field names (e.g. "DisabledPolicy") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DisabledPolicy") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest: Requestto disable the field.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest struct {// DisabledPolicy: Required. The disabled policy to update.DisabledPolicy *GoogleAppsDriveLabelsV2LifecycleDisabledPolicy `json:"disabledPolicy,omitempty"`// FieldId: Required. The selection field in which a choice will be disabled.FieldIdstring `json:"fieldId,omitempty"`// Id: Required. Choice to disable.Idstring `json:"id,omitempty"`// UpdateMask: The fields that should be updated. At least one field must be// specified. The root `disabled_policy` is implied and should not be// specified. A single `*` can be used as a short-hand for updating every// field.UpdateMaskstring `json:"updateMask,omitempty"`// ForceSendFields is a list of field names (e.g. "DisabledPolicy") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DisabledPolicy") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest:Request to disable a choice.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest struct {// Id: Required. ID of the field to enable.Idstring `json:"id,omitempty"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest: Request toenable the field.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest struct {// FieldId: Required. The selection field in which a choice will be enabled.FieldIdstring `json:"fieldId,omitempty"`// Id: Required. Choice to enable.Idstring `json:"id,omitempty"`// ForceSendFields is a list of field names (e.g. "FieldId") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FieldId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest:Request to enable a choice.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest struct {// CreateField: Creates a field.CreateField *GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest `json:"createField,omitempty"`// CreateSelectionChoice: Create a choice within a selection field.CreateSelectionChoice *GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest `json:"createSelectionChoice,omitempty"`// DeleteField: Deletes a field from the label.DeleteField *GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest `json:"deleteField,omitempty"`// DeleteSelectionChoice: Delete a choice within a selection field.DeleteSelectionChoice *GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest `json:"deleteSelectionChoice,omitempty"`// DisableField: Disables the field.DisableField *GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest `json:"disableField,omitempty"`// DisableSelectionChoice: Disable a choice within a selection field.DisableSelectionChoice *GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest `json:"disableSelectionChoice,omitempty"`// EnableField: Enables the field.EnableField *GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest `json:"enableField,omitempty"`// EnableSelectionChoice: Enable a choice within a selection field.EnableSelectionChoice *GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest `json:"enableSelectionChoice,omitempty"`// UpdateField: Updates basic properties of a field.UpdateField *GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest `json:"updateField,omitempty"`// UpdateFieldType: Update field type and/or type options.UpdateFieldType *GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest `json:"updateFieldType,omitempty"`// UpdateLabel: Updates the label properties.UpdateLabel *GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest `json:"updateLabel,omitempty"`// UpdateSelectionChoiceProperties: Update a choice property within a selection// field.UpdateSelectionChoiceProperties *GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest `json:"updateSelectionChoiceProperties,omitempty"`// ForceSendFields is a list of field names (e.g. "CreateField") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateField") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest: A single kind ofupdate to apply to a label.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest struct {// Id: Required. The field to update.Idstring `json:"id,omitempty"`// Properties: Required. Basic field properties.Properties *GoogleAppsDriveLabelsV2FieldProperties `json:"properties,omitempty"`// UpdateMask: The fields that should be updated. At least one field must be// specified. The root `properties` is implied and should not be specified. A// single `*` can be used as a short-hand for updating every field.UpdateMaskstring `json:"updateMask,omitempty"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest:Request to update field properties.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest struct {// DateOptions: Update field to Date.DateOptions *GoogleAppsDriveLabelsV2FieldDateOptions `json:"dateOptions,omitempty"`// Id: Required. The field to update.Idstring `json:"id,omitempty"`// IntegerOptions: Update field to Integer.IntegerOptions *GoogleAppsDriveLabelsV2FieldIntegerOptions `json:"integerOptions,omitempty"`// SelectionOptions: Update field to Selection.SelectionOptions *GoogleAppsDriveLabelsV2FieldSelectionOptions `json:"selectionOptions,omitempty"`// TextOptions: Update field to Text.TextOptions *GoogleAppsDriveLabelsV2FieldTextOptions `json:"textOptions,omitempty"`// UpdateMask: The fields that should be updated. At least one field must be// specified. The root of `type_options` is implied and should not be// specified. A single `*` can be used as a short-hand for updating every// field.UpdateMaskstring `json:"updateMask,omitempty"`// UserOptions: Update field to User.UserOptions *GoogleAppsDriveLabelsV2FieldUserOptions `json:"userOptions,omitempty"`// ForceSendFields is a list of field names (e.g. "DateOptions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DateOptions") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest:Request to change the type of a field.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest struct {// Properties: Required. Label properties to update.Properties *GoogleAppsDriveLabelsV2LabelProperties `json:"properties,omitempty"`// UpdateMask: The fields that should be updated. At least one field must be// specified. The root `label_properties` is implied and should not be// specified. A single `*` can be used as a short-hand for updating every// field.UpdateMaskstring `json:"updateMask,omitempty"`// ForceSendFields is a list of field names (e.g. "Properties") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Properties") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest:Updates basic properties of a label.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest struct {// FieldId: Required. The selection field to update.FieldIdstring `json:"fieldId,omitempty"`// Id: Required. The choice to update.Idstring `json:"id,omitempty"`// Properties: Required. The choice properties to update.Properties *GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties `json:"properties,omitempty"`// UpdateMask: The fields that should be updated. At least one field must be// specified. The root `properties` is implied and should not be specified. A// single `*` can be used as a short-hand for updating every field.UpdateMaskstring `json:"updateMask,omitempty"`// ForceSendFields is a list of field names (e.g. "FieldId") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FieldId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest: Request to update a choice property.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelResponse¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse struct {// Responses: The reply of the updates. This maps 1:1 with the updates,// although responses to some requests may be empty.Responses []*GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse `json:"responses,omitempty"`// UpdatedLabel: The label after updates were applied. This is only set if// `include_label_in_response` is `true` and there were no errors.UpdatedLabel *GoogleAppsDriveLabelsV2Label `json:"updatedLabel,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Responses") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Responses") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse: Response for label update.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeltaUpdateLabelResponse) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse struct {// Id: The field of the created field. When left blank in a create request, a// key will be autogenerated and can be identified here.Idstring `json:"id,omitempty"`// Priority: The priority of the created field. The priority may change from// what was specified to assure contiguous priorities between fields (1-n).Priorityint64 `json:"priority,omitempty"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse: Responsefollowing field create.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse struct {// FieldId: The server-generated ID of the field.FieldIdstring `json:"fieldId,omitempty"`// Id: The server-generated ID of the created choice within the field.Idstring `json:"id,omitempty"`// ForceSendFields is a list of field names (e.g. "FieldId") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FieldId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse:
Response following selection choice create.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse struct {}GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse: Responsefollowing field delete.
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse struct {}GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse:
Response following choice delete.
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse struct {}GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse:Response following field disable.
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse struct {}GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse: Response following choice disable.
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse struct {}GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse: Responsefollowing field enable.
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse struct {}GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse:
Response following choice enable.
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse struct {// CreateField: Creates a field.CreateField *GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse `json:"createField,omitempty"`// CreateSelectionChoice: Creates a selection list option to add to a selection// field.CreateSelectionChoice *GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse `json:"createSelectionChoice,omitempty"`// DeleteField: Deletes a field from the label.DeleteField *GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse `json:"deleteField,omitempty"`// DeleteSelectionChoice: Deletes a choice from a selection field.DeleteSelectionChoice *GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse `json:"deleteSelectionChoice,omitempty"`// DisableField: Disables field.DisableField *GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse `json:"disableField,omitempty"`// DisableSelectionChoice: Disables a choice within a selection field.DisableSelectionChoice *GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse `json:"disableSelectionChoice,omitempty"`// EnableField: Enables field.EnableField *GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse `json:"enableField,omitempty"`// EnableSelectionChoice: Enables a choice within a selection field.EnableSelectionChoice *GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse `json:"enableSelectionChoice,omitempty"`// UpdateField: Updates basic properties of a field.UpdateField *GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse `json:"updateField,omitempty"`// UpdateFieldType: Updates field type and/or type options.UpdateFieldType *GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse `json:"updateFieldType,omitempty"`// UpdateLabel: Updates basic properties of a label.UpdateLabel *GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse `json:"updateLabel,omitempty"`// UpdateSelectionChoiceProperties: Updates a choice within a selection field.UpdateSelectionChoiceProperties *GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse `json:"updateSelectionChoiceProperties,omitempty"`// ForceSendFields is a list of field names (e.g. "CreateField") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateField") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse: A single responsefrom an update.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse struct {// Priority: The priority of the updated field. The priority may change from// what was specified to assure contiguous priorities between fields (1-n).Priorityint64 `json:"priority,omitempty"`// ForceSendFields is a list of field names (e.g. "Priority") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Priority") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse:
Response following update to field properties.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse struct {}GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse:Response following update to field type.
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse struct {}GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse:
Response following update to label properties.
typeGoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse¶added inv0.112.0
type GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse struct {// Priority: The priority of the updated choice. The priority may change from// what was specified to assure contiguous priorities between choices (1-n).Priorityint64 `json:"priority,omitempty"`// ForceSendFields is a list of field names (e.g. "Priority") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Priority") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse: Response following update to selection choice properties.
func (GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2DisableLabelRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2DisableLabelRequest struct {// DisabledPolicy: Disabled policy to use.DisabledPolicy *GoogleAppsDriveLabelsV2LifecycleDisabledPolicy `json:"disabledPolicy,omitempty"`// LanguageCode: The BCP-47 language code to use for evaluating localized field// labels. When not specified, values in the default configured language will// be used.LanguageCodestring `json:"languageCode,omitempty"`// UpdateMask: The fields that should be updated. At least one field must be// specified. The root `disabled_policy` is implied and should not be// specified. A single `*` can be used as a short-hand for updating every// field.UpdateMaskstring `json:"updateMask,omitempty"`// UseAdminAccess: Set to `true` in order to use the user's admin credentials.// The server will verify the user is an admin for the label before allowing// access.UseAdminAccessbool `json:"useAdminAccess,omitempty"`// WriteControl: Provides control over how write requests are executed.// Defaults to unset, which means the last write wins.WriteControl *GoogleAppsDriveLabelsV2WriteControl `json:"writeControl,omitempty"`// ForceSendFields is a list of field names (e.g. "DisabledPolicy") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DisabledPolicy") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2DisableLabelRequest: Request to deprecate a publishedlabel.
func (GoogleAppsDriveLabelsV2DisableLabelRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2DisableLabelRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2EnableLabelRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2EnableLabelRequest struct {// LanguageCode: The BCP-47 language code to use for evaluating localized field// labels. When not specified, values in the default configured language will// be used.LanguageCodestring `json:"languageCode,omitempty"`// UseAdminAccess: Set to `true` in order to use the user's admin credentials.// The server will verify the user is an admin for the label before allowing// access.UseAdminAccessbool `json:"useAdminAccess,omitempty"`// WriteControl: Provides control over how write requests are executed.// Defaults to unset, which means the last write wins.WriteControl *GoogleAppsDriveLabelsV2WriteControl `json:"writeControl,omitempty"`// ForceSendFields is a list of field names (e.g. "LanguageCode") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LanguageCode") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2EnableLabelRequest: Request to enable a label.
func (GoogleAppsDriveLabelsV2EnableLabelRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2EnableLabelRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2Field¶
type GoogleAppsDriveLabelsV2Field struct {// AppliedCapabilities: Output only. The capabilities this user has on this// field and its value when the label is applied on Drive items.AppliedCapabilities *GoogleAppsDriveLabelsV2FieldAppliedCapabilities `json:"appliedCapabilities,omitempty"`// CreateTime: Output only. The time this field was created.CreateTimestring `json:"createTime,omitempty"`// Creator: Output only. The user who created this field.Creator *GoogleAppsDriveLabelsV2UserInfo `json:"creator,omitempty"`// DateOptions: Date field options.DateOptions *GoogleAppsDriveLabelsV2FieldDateOptions `json:"dateOptions,omitempty"`// DisableTime: Output only. The time this field was disabled. This value has// no meaning when the field is not disabled.DisableTimestring `json:"disableTime,omitempty"`// Disabler: Output only. The user who disabled this field. This value has no// meaning when the field is not disabled.Disabler *GoogleAppsDriveLabelsV2UserInfo `json:"disabler,omitempty"`// DisplayHints: Output only. UI display hints for rendering a field.DisplayHints *GoogleAppsDriveLabelsV2FieldDisplayHints `json:"displayHints,omitempty"`// Id: Output only. The key of a field, unique within a label or library. This// value is autogenerated. Matches the regex: `([a-zA-Z0-9])+`.Idstring `json:"id,omitempty"`// IntegerOptions: Integer field options.IntegerOptions *GoogleAppsDriveLabelsV2FieldIntegerOptions `json:"integerOptions,omitempty"`// Lifecycle: Output only. The lifecycle of this field.Lifecycle *GoogleAppsDriveLabelsV2Lifecycle `json:"lifecycle,omitempty"`// LockStatus: Output only. The `LockStatus` of this field.LockStatus *GoogleAppsDriveLabelsV2LockStatus `json:"lockStatus,omitempty"`// Properties: The basic properties of the field.Properties *GoogleAppsDriveLabelsV2FieldProperties `json:"properties,omitempty"`// Publisher: Output only. The user who published this field. This value has no// meaning when the field is not published.Publisher *GoogleAppsDriveLabelsV2UserInfo `json:"publisher,omitempty"`// QueryKey: Output only. The key to use when constructing Drive search queries// to find files based on values defined for this field on files. For example,// "{query_key}` > 2001-01-01".QueryKeystring `json:"queryKey,omitempty"`// SchemaCapabilities: Output only. The capabilities this user has when editing// this field.SchemaCapabilities *GoogleAppsDriveLabelsV2FieldSchemaCapabilities `json:"schemaCapabilities,omitempty"`// SelectionOptions: Selection field options.SelectionOptions *GoogleAppsDriveLabelsV2FieldSelectionOptions `json:"selectionOptions,omitempty"`// TextOptions: Text field options.TextOptions *GoogleAppsDriveLabelsV2FieldTextOptions `json:"textOptions,omitempty"`// UpdateTime: Output only. The time this field was updated.UpdateTimestring `json:"updateTime,omitempty"`// Updater: Output only. The user who modified this field.Updater *GoogleAppsDriveLabelsV2UserInfo `json:"updater,omitempty"`// UserOptions: User field options.UserOptions *GoogleAppsDriveLabelsV2FieldUserOptions `json:"userOptions,omitempty"`// ForceSendFields is a list of field names (e.g. "AppliedCapabilities") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AppliedCapabilities") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2Field: Defines a field that has a display name, datatype, and other configuration options. This field defines the kind ofmetadata that may be set on a Drive item.
func (GoogleAppsDriveLabelsV2Field)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2Field) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2FieldAppliedCapabilities¶
type GoogleAppsDriveLabelsV2FieldAppliedCapabilities struct {// CanRead: Whether the user can read related applied metadata on items.CanReadbool `json:"canRead,omitempty"`// CanSearch: Whether the user can search for Drive items referencing this// field.CanSearchbool `json:"canSearch,omitempty"`// CanWrite: Whether the user can set this field on Drive items.CanWritebool `json:"canWrite,omitempty"`// ForceSendFields is a list of field names (e.g. "CanRead") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CanRead") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2FieldAppliedCapabilities: The capabilities related tothis field on applied metadata.
func (GoogleAppsDriveLabelsV2FieldAppliedCapabilities)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2FieldAppliedCapabilities) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2FieldDateOptions¶
type GoogleAppsDriveLabelsV2FieldDateOptions struct {// DateFormat: Output only. ICU date format.DateFormatstring `json:"dateFormat,omitempty"`// DateFormatType: Localized date formatting option. Field values are rendered// in this format according to their locale.//// Possible values:// "DATE_FORMAT_UNSPECIFIED" - Date format unspecified.// "LONG_DATE" - Includes full month name. For example, January 12, 1999// (MMMM d, y)// "SHORT_DATE" - Short, numeric, representation. For example, 12/13/99// (M/d/yy)DateFormatTypestring `json:"dateFormatType,omitempty"`// MaxValue: Output only. Maximum valid value (year, month, day).MaxValue *GoogleTypeDate `json:"maxValue,omitempty"`// MinValue: Output only. Minimum valid value (year, month, day).MinValue *GoogleTypeDate `json:"minValue,omitempty"`// ForceSendFields is a list of field names (e.g. "DateFormat") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DateFormat") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2FieldDateOptions: Options for the date field type.
func (GoogleAppsDriveLabelsV2FieldDateOptions)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2FieldDateOptions) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2FieldDisplayHints¶
type GoogleAppsDriveLabelsV2FieldDisplayHints struct {// Disabled: Whether the field should be shown in the UI as disabled.Disabledbool `json:"disabled,omitempty"`// HiddenInSearch: This field should be hidden in the search menu when// searching for Drive items.HiddenInSearchbool `json:"hiddenInSearch,omitempty"`// Required: Whether the field should be shown as required in the UI.Requiredbool `json:"required,omitempty"`// ShownInApply: This field should be shown in the apply menu when applying// values to a Drive item.ShownInApplybool `json:"shownInApply,omitempty"`// ForceSendFields is a list of field names (e.g. "Disabled") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Disabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2FieldDisplayHints: UI display hints for rendering afield.
func (GoogleAppsDriveLabelsV2FieldDisplayHints)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2FieldDisplayHints) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2FieldIntegerOptions¶
type GoogleAppsDriveLabelsV2FieldIntegerOptions struct {// MaxValue: Output only. The maximum valid value for the integer field.MaxValueint64 `json:"maxValue,omitempty,string"`// MinValue: Output only. The minimum valid value for the integer field.MinValueint64 `json:"minValue,omitempty,string"`// ForceSendFields is a list of field names (e.g. "MaxValue") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MaxValue") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2FieldIntegerOptions: Options for the Integer fieldtype.
func (GoogleAppsDriveLabelsV2FieldIntegerOptions)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2FieldIntegerOptions) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2FieldLimits¶added inv0.112.0
type GoogleAppsDriveLabelsV2FieldLimits struct {// DateLimits: Date field limits.DateLimits *GoogleAppsDriveLabelsV2DateLimits `json:"dateLimits,omitempty"`// IntegerLimits: Integer field limits.IntegerLimits *GoogleAppsDriveLabelsV2IntegerLimits `json:"integerLimits,omitempty"`// LongTextLimits: Long text field limits.LongTextLimits *GoogleAppsDriveLabelsV2LongTextLimits `json:"longTextLimits,omitempty"`// MaxDescriptionLength: Limits for field description, also called help text.MaxDescriptionLengthint64 `json:"maxDescriptionLength,omitempty"`// MaxDisplayNameLength: Limits for field title.MaxDisplayNameLengthint64 `json:"maxDisplayNameLength,omitempty"`// MaxIdLength: Maximum length for the id.MaxIdLengthint64 `json:"maxIdLength,omitempty"`// SelectionLimits: Selection field limits.SelectionLimits *GoogleAppsDriveLabelsV2SelectionLimits `json:"selectionLimits,omitempty"`// TextLimits: The relevant limits for the specified Field.Type. Text field// limits.TextLimits *GoogleAppsDriveLabelsV2TextLimits `json:"textLimits,omitempty"`// UserLimits: User field limits.UserLimits *GoogleAppsDriveLabelsV2UserLimits `json:"userLimits,omitempty"`// ForceSendFields is a list of field names (e.g. "DateLimits") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DateLimits") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2FieldLimits: Field constants governing the structureof a field; such as, the maximum title length, minimum and maximum fieldvalues or length, etc.
func (GoogleAppsDriveLabelsV2FieldLimits)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2FieldLimits) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2FieldListOptions¶
type GoogleAppsDriveLabelsV2FieldListOptions struct {// MaxEntries: Maximum number of entries permitted.MaxEntriesint64 `json:"maxEntries,omitempty"`// ForceSendFields is a list of field names (e.g. "MaxEntries") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MaxEntries") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2FieldListOptions: Options for a multi-valued variantof an associated field type.
func (GoogleAppsDriveLabelsV2FieldListOptions)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2FieldListOptions) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2FieldProperties¶
type GoogleAppsDriveLabelsV2FieldProperties struct {// DisplayName: Required. The display text to show in the UI identifying this// field.DisplayNamestring `json:"displayName,omitempty"`// InsertBeforeField: Input only. Insert or move this field before the// indicated field. If empty, the field is placed at the end of the list.InsertBeforeFieldstring `json:"insertBeforeField,omitempty"`// Required: Whether the field should be marked as required.Requiredbool `json:"required,omitempty"`// ForceSendFields is a list of field names (e.g. "DisplayName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DisplayName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2FieldProperties: The basic properties of the field.
func (GoogleAppsDriveLabelsV2FieldProperties)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2FieldProperties) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2FieldSchemaCapabilities¶
type GoogleAppsDriveLabelsV2FieldSchemaCapabilities struct {// CanDelete: Whether the user can delete this field. The user must have// permission and the field must be deprecated.CanDeletebool `json:"canDelete,omitempty"`// CanDisable: Whether the user can disable this field. The user must have// permission and this field must not already be disabled.CanDisablebool `json:"canDisable,omitempty"`// CanEnable: Whether the user can enable this field. The user must have// permission and this field must be disabled.CanEnablebool `json:"canEnable,omitempty"`// CanUpdate: Whether the user can change this field.CanUpdatebool `json:"canUpdate,omitempty"`// ForceSendFields is a list of field names (e.g. "CanDelete") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CanDelete") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2FieldSchemaCapabilities: The capabilities related tothis field when editing the field.
func (GoogleAppsDriveLabelsV2FieldSchemaCapabilities)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2FieldSchemaCapabilities) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2FieldSelectionOptions¶
type GoogleAppsDriveLabelsV2FieldSelectionOptions struct {// Choices: The options available for this selection field. The list order is// consistent, and modified with `insert_before_choice`.Choices []*GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice `json:"choices,omitempty"`// ListOptions: When specified, indicates this field supports a list of values.// Once the field is published, this cannot be changed.ListOptions *GoogleAppsDriveLabelsV2FieldListOptions `json:"listOptions,omitempty"`// ForceSendFields is a list of field names (e.g. "Choices") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Choices") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2FieldSelectionOptions: Options for the selectionfield type.
func (GoogleAppsDriveLabelsV2FieldSelectionOptions)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2FieldSelectionOptions) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2FieldSelectionOptionsChoice¶
type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice struct {// AppliedCapabilities: Output only. The capabilities related to this choice on// applied metadata.AppliedCapabilities *GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities `json:"appliedCapabilities,omitempty"`// CreateTime: Output only. The time this choice was created.CreateTimestring `json:"createTime,omitempty"`// Creator: Output only. The user who created this choice.Creator *GoogleAppsDriveLabelsV2UserInfo `json:"creator,omitempty"`// DisableTime: Output only. The time this choice was disabled. This value has// no meaning when the choice is not disabled.DisableTimestring `json:"disableTime,omitempty"`// Disabler: Output only. The user who disabled this choice. This value has no// meaning when the option is not disabled.Disabler *GoogleAppsDriveLabelsV2UserInfo `json:"disabler,omitempty"`// DisplayHints: Output only. UI display hints for rendering a choice.DisplayHints *GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints `json:"displayHints,omitempty"`// Id: The unique value of the choice. This ID is autogenerated. Matches the// regex: `([a-zA-Z0-9_])+`.Idstring `json:"id,omitempty"`// Lifecycle: Output only. Lifecycle of the choice.Lifecycle *GoogleAppsDriveLabelsV2Lifecycle `json:"lifecycle,omitempty"`// LockStatus: Output only. The `LockStatus` of this choice.LockStatus *GoogleAppsDriveLabelsV2LockStatus `json:"lockStatus,omitempty"`// Properties: Basic properties of the choice.Properties *GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties `json:"properties,omitempty"`// PublishTime: Output only. The time this choice was published. This value has// no meaning when the choice is not published.PublishTimestring `json:"publishTime,omitempty"`// Publisher: Output only. The user who published this choice. This value has// no meaning when the choice is not published.Publisher *GoogleAppsDriveLabelsV2UserInfo `json:"publisher,omitempty"`// SchemaCapabilities: Output only. The capabilities related to this option// when editing the option.SchemaCapabilities *GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities `json:"schemaCapabilities,omitempty"`// UpdateTime: Output only. The time this choice was updated last.UpdateTimestring `json:"updateTime,omitempty"`// Updater: Output only. The user who updated this choice last.Updater *GoogleAppsDriveLabelsV2UserInfo `json:"updater,omitempty"`// ForceSendFields is a list of field names (e.g. "AppliedCapabilities") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AppliedCapabilities") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice: Selection field choice.
func (GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2FieldSelectionOptionsChoice) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities¶
type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities struct {// CanRead: Whether the user can read related applied metadata on items.CanReadbool `json:"canRead,omitempty"`// CanSearch: Whether the user can use this choice in search queries.CanSearchbool `json:"canSearch,omitempty"`// CanSelect: Whether the user can select this choice on an item.CanSelectbool `json:"canSelect,omitempty"`// ForceSendFields is a list of field names (e.g. "CanRead") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CanRead") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities: Thecapabilities related to this choice on applied metadata.
func (GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints¶
type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints struct {// BadgeColors: The colors to use for the badge. Changed to Google Material// colors based on the chosen `properties.badge_config.color`.BadgeColors *GoogleAppsDriveLabelsV2BadgeColors `json:"badgeColors,omitempty"`// BadgePriority: The priority of this badge. Used to compare and sort between// multiple badges. A lower number means the badge should be shown first. When// a badging configuration is not present, this will be 0. Otherwise, this will// be set to `BadgeConfig.priority_override` or the default heuristic which// prefers creation date of the label, and field and option priority.BadgePriorityint64 `json:"badgePriority,omitempty,string"`// DarkBadgeColors: The dark-mode color to use for the badge. Changed to Google// Material colors based on the chosen `properties.badge_config.color`.DarkBadgeColors *GoogleAppsDriveLabelsV2BadgeColors `json:"darkBadgeColors,omitempty"`// Disabled: Whether the option should be shown in the UI as disabled.Disabledbool `json:"disabled,omitempty"`// HiddenInSearch: This option should be hidden in the search menu when// searching for Drive items.HiddenInSearchbool `json:"hiddenInSearch,omitempty"`// ShownInApply: This option should be shown in the apply menu when applying// values to a Drive item.ShownInApplybool `json:"shownInApply,omitempty"`// ForceSendFields is a list of field names (e.g. "BadgeColors") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BadgeColors") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints: UI displayhints for rendering an option.
func (GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties¶
type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties struct {// BadgeConfig: The badge configuration for this choice. When set, the label// that owns this choice is considered a "badged label".BadgeConfig *GoogleAppsDriveLabelsV2BadgeConfig `json:"badgeConfig,omitempty"`// Description: The description of this label.Descriptionstring `json:"description,omitempty"`// DisplayName: Required. The display text to show in the UI identifying this// field.DisplayNamestring `json:"displayName,omitempty"`// InsertBeforeChoice: Input only. Insert or move this choice before the// indicated choice. If empty, the choice is placed at the end of the list.InsertBeforeChoicestring `json:"insertBeforeChoice,omitempty"`// ForceSendFields is a list of field names (e.g. "BadgeConfig") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BadgeConfig") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties: Basicproperties of the choice.
func (GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities¶
type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities struct {// CanDelete: Whether the user can delete this choice.CanDeletebool `json:"canDelete,omitempty"`// CanDisable: Whether the user can disable this choice.CanDisablebool `json:"canDisable,omitempty"`// CanEnable: Whether the user can enable this choice.CanEnablebool `json:"canEnable,omitempty"`// CanUpdate: Whether the user can update this choice.CanUpdatebool `json:"canUpdate,omitempty"`// ForceSendFields is a list of field names (e.g. "CanDelete") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CanDelete") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities: Thecapabilities related to this choice when editing the choice.
func (GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2FieldTextOptions¶
type GoogleAppsDriveLabelsV2FieldTextOptions struct {// MaxLength: Output only. The maximum valid length of values for the text// field.MaxLengthint64 `json:"maxLength,omitempty"`// MinLength: Output only. The minimum valid length of values for the text// field.MinLengthint64 `json:"minLength,omitempty"`// ForceSendFields is a list of field names (e.g. "MaxLength") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MaxLength") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2FieldTextOptions: Options for the Text field type.
func (GoogleAppsDriveLabelsV2FieldTextOptions)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2FieldTextOptions) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2FieldUserOptions¶
type GoogleAppsDriveLabelsV2FieldUserOptions struct {// ListOptions: When specified, indicates that this field supports a list of// values. Once the field is published, this cannot be changed.ListOptions *GoogleAppsDriveLabelsV2FieldListOptions `json:"listOptions,omitempty"`// ForceSendFields is a list of field names (e.g. "ListOptions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ListOptions") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2FieldUserOptions: Options for the user field type.
func (GoogleAppsDriveLabelsV2FieldUserOptions)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2FieldUserOptions) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2IntegerLimits¶added inv0.112.0
type GoogleAppsDriveLabelsV2IntegerLimits struct {// MaxValue: Maximum value for an integer field type.MaxValueint64 `json:"maxValue,omitempty,string"`// MinValue: Minimum value for an integer field type.MinValueint64 `json:"minValue,omitempty,string"`// ForceSendFields is a list of field names (e.g. "MaxValue") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MaxValue") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2IntegerLimits: Limits for integer field type.
func (GoogleAppsDriveLabelsV2IntegerLimits)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2IntegerLimits) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2Label¶
type GoogleAppsDriveLabelsV2Label struct {// AppliedCapabilities: Output only. The capabilities related to this label on// applied metadata.AppliedCapabilities *GoogleAppsDriveLabelsV2LabelAppliedCapabilities `json:"appliedCapabilities,omitempty"`// AppliedLabelPolicy: Output only. Behavior of this label when it's applied to// Drive items.AppliedLabelPolicy *GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy `json:"appliedLabelPolicy,omitempty"`// CreateTime: Output only. The time this label was created.CreateTimestring `json:"createTime,omitempty"`// Creator: Output only. The user who created this label.Creator *GoogleAppsDriveLabelsV2UserInfo `json:"creator,omitempty"`// Customer: Output only. The customer this label belongs to. For example:// `customers/123abc789`.Customerstring `json:"customer,omitempty"`// DisableTime: Output only. The time this label was disabled. This value has// no meaning when the label isn't disabled.DisableTimestring `json:"disableTime,omitempty"`// Disabler: Output only. The user who disabled this label. This value has no// meaning when the label isn't disabled.Disabler *GoogleAppsDriveLabelsV2UserInfo `json:"disabler,omitempty"`// DisplayHints: Output only. UI display hints for rendering the label.DisplayHints *GoogleAppsDriveLabelsV2LabelDisplayHints `json:"displayHints,omitempty"`// EnabledAppSettings: Optional. The `EnabledAppSettings` for this Label.EnabledAppSettings *GoogleAppsDriveLabelsV2LabelEnabledAppSettings `json:"enabledAppSettings,omitempty"`// Fields: List of fields in descending priority order.Fields []*GoogleAppsDriveLabelsV2Field `json:"fields,omitempty"`// Id: Output only. Globally unique identifier of this label. ID makes up part// of the label `name`, but unlike `name`, ID is consistent between revisions.// Matches the regex: `([a-zA-Z0-9])+`.Idstring `json:"id,omitempty"`// LabelType: Required. The type of label.//// Possible values:// "LABEL_TYPE_UNSPECIFIED" - Unknown label type.// "SHARED" - Shared labels may be shared with users to apply to Drive items.// "ADMIN" - Admin-owned label. Only creatable and editable by admins.// Supports some additional admin-only features.// "GOOGLE_APP" - A label owned by an internal Google application rather than// a customer. These labels are read-only.LabelTypestring `json:"labelType,omitempty"`// LearnMoreUri: Custom URL to present to users to allow them to learn more// about this label and how it should be used.LearnMoreUristring `json:"learnMoreUri,omitempty"`// Lifecycle: Output only. The lifecycle state of the label including whether// it's published, deprecated, and has draft changes.Lifecycle *GoogleAppsDriveLabelsV2Lifecycle `json:"lifecycle,omitempty"`// LockStatus: Output only. The `LockStatus` of this label.LockStatus *GoogleAppsDriveLabelsV2LockStatus `json:"lockStatus,omitempty"`// Name: Output only. Resource name of the label. Will be in the form of// either: `labels/{id}` or `labels/{id}@{revision_id}` depending on the// request. See `id` and `revision_id` below.Namestring `json:"name,omitempty"`// Properties: Required. The basic properties of the label.Properties *GoogleAppsDriveLabelsV2LabelProperties `json:"properties,omitempty"`// PublishTime: Output only. The time this label was published. This value has// no meaning when the label isn't published.PublishTimestring `json:"publishTime,omitempty"`// Publisher: Output only. The user who published this label. This value has no// meaning when the label isn't published.>>Publisher *GoogleAppsDriveLabelsV2UserInfo `json:"publisher,omitempty"`// RevisionCreateTime: Output only. The time this label revision was created.RevisionCreateTimestring `json:"revisionCreateTime,omitempty"`// RevisionCreator: Output only. The user who created this label revision.RevisionCreator *GoogleAppsDriveLabelsV2UserInfo `json:"revisionCreator,omitempty"`// RevisionId: Output only. Revision ID of the label. Revision ID might be part// of the label `name` depending on the request issued. A new revision is// created whenever revisioned properties of a label are changed. Matches the// regex: `([a-zA-Z0-9])+`.RevisionIdstring `json:"revisionId,omitempty"`// SchemaCapabilities: Output only. The capabilities the user has on this// label.SchemaCapabilities *GoogleAppsDriveLabelsV2LabelSchemaCapabilities `json:"schemaCapabilities,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AppliedCapabilities") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AppliedCapabilities") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2Label: A label defines a taxonomy that can be appliedto Drive items in order to organize and search across items. Labels can besimple strings, or can contain fields that describe additional metadata thatcan be further used to organize and search Drive items.
func (GoogleAppsDriveLabelsV2Label)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2Label) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2LabelAppliedCapabilities¶
type GoogleAppsDriveLabelsV2LabelAppliedCapabilities struct {// CanApply: Whether the user can apply this label to items.CanApplybool `json:"canApply,omitempty"`// CanRead: Whether the user can read applied metadata related to this label.CanReadbool `json:"canRead,omitempty"`// CanRemove: Whether the user can remove this label from items.CanRemovebool `json:"canRemove,omitempty"`// ForceSendFields is a list of field names (e.g. "CanApply") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CanApply") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2LabelAppliedCapabilities: The capabilities a user hason this label's applied metadata.
func (GoogleAppsDriveLabelsV2LabelAppliedCapabilities)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2LabelAppliedCapabilities) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2LabelAppliedLabelPolicy¶
type GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy struct {// CopyMode: Indicates how the applied label and field values should be copied// when a Drive item is copied.//// Possible values:// "COPY_MODE_UNSPECIFIED" - Copy mode unspecified.// "DO_NOT_COPY" - The applied label and field values aren't copied by// default when the Drive item it's applied to is copied.// "ALWAYS_COPY" - The applied label and field values are always copied when// the Drive item it's applied to is copied. Only admins can use this mode.// "COPY_APPLIABLE" - The applied label and field values are copied if the// label is appliable by the user making the copy.CopyModestring `json:"copyMode,omitempty"`// ForceSendFields is a list of field names (e.g. "CopyMode") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CopyMode") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy: Behavior of this label whenit's applied to Drive items.
func (GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2LabelAppliedLabelPolicy) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2LabelDisplayHints¶
type GoogleAppsDriveLabelsV2LabelDisplayHints struct {// Disabled: Whether the label should be shown in the UI as disabled.Disabledbool `json:"disabled,omitempty"`// HiddenInSearch: This label should be hidden in the search menu when// searching for Drive items.HiddenInSearchbool `json:"hiddenInSearch,omitempty"`// Priority: The order to display labels in a list.Priorityint64 `json:"priority,omitempty,string"`// ShownInApply: This label should be shown in the apply menu when applying// values to a Drive item.ShownInApplybool `json:"shownInApply,omitempty"`// ForceSendFields is a list of field names (e.g. "Disabled") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Disabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2LabelDisplayHints: The UI display hints for renderingthe label.
func (GoogleAppsDriveLabelsV2LabelDisplayHints)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2LabelDisplayHints) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2LabelEnabledAppSettings¶added inv0.237.0
type GoogleAppsDriveLabelsV2LabelEnabledAppSettings struct {// EnabledApps: Optional. The list of apps where the label can be used.EnabledApps []*GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp `json:"enabledApps,omitempty"`// ForceSendFields is a list of field names (e.g. "EnabledApps") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EnabledApps") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2LabelEnabledAppSettings: Describes the GoogleWorkspace apps in which the label can be used.
func (GoogleAppsDriveLabelsV2LabelEnabledAppSettings)MarshalJSON¶added inv0.237.0
func (sGoogleAppsDriveLabelsV2LabelEnabledAppSettings) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp¶added inv0.237.0
type GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp struct {// App: Optional. The name of the app.//// Possible values:// "APP_UNSPECIFIED" - Unspecified// "DRIVE" - Drive// "GMAIL" - GmailAppstring `json:"app,omitempty"`// ForceSendFields is a list of field names (e.g. "App") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "App") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp: An app where thelabel can be used.
func (GoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp)MarshalJSON¶added inv0.237.0
func (sGoogleAppsDriveLabelsV2LabelEnabledAppSettingsEnabledApp) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2LabelLimits¶added inv0.112.0
type GoogleAppsDriveLabelsV2LabelLimits struct {// FieldLimits: The limits for fields.FieldLimits *GoogleAppsDriveLabelsV2FieldLimits `json:"fieldLimits,omitempty"`// MaxDeletedFields: The maximum number of published fields that can be// deleted.MaxDeletedFieldsint64 `json:"maxDeletedFields,omitempty"`// MaxDescriptionLength: The maximum number of characters allowed for the// description.MaxDescriptionLengthint64 `json:"maxDescriptionLength,omitempty"`// MaxDraftRevisions: The maximum number of draft revisions that will be kept// before deleting old drafts.MaxDraftRevisionsint64 `json:"maxDraftRevisions,omitempty"`// MaxFields: The maximum number of fields allowed within the label.MaxFieldsint64 `json:"maxFields,omitempty"`// MaxTitleLength: The maximum number of characters allowed for the title.MaxTitleLengthint64 `json:"maxTitleLength,omitempty"`// Name: Resource name.Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "FieldLimits") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FieldLimits") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2LabelLimits: Label constraints governing thestructure of a label; such as, the maximum number of fields allowed andmaximum length of the label title.
func (GoogleAppsDriveLabelsV2LabelLimits)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2LabelLimits) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2LabelLock¶added inv0.112.0
type GoogleAppsDriveLabelsV2LabelLock struct {// Capabilities: Output only. The user's capabilities on this label lock.Capabilities *GoogleAppsDriveLabelsV2LabelLockCapabilities `json:"capabilities,omitempty"`// ChoiceId: The ID of the selection field choice that should be locked. If// present, `field_id` must also be present.ChoiceIdstring `json:"choiceId,omitempty"`// CreateTime: Output only. The time this label lock was created.CreateTimestring `json:"createTime,omitempty"`// Creator: Output only. The user whose credentials were used to create the// label lock. Not present if no user was responsible for creating the label// lock.Creator *GoogleAppsDriveLabelsV2UserInfo `json:"creator,omitempty"`// DeleteTime: Output only. A timestamp indicating when this label lock was// scheduled for deletion. Present only if this label lock is in the `DELETING`// state.DeleteTimestring `json:"deleteTime,omitempty"`// FieldId: The ID of the field that should be locked. Empty if the whole label// should be locked.FieldIdstring `json:"fieldId,omitempty"`// Name: Output only. Resource name of this label lock.Namestring `json:"name,omitempty"`// State: Output only. This label lock's state.//// Possible values:// "STATE_UNSPECIFIED" - Unknown state.// "ACTIVE" - The label lock is active and is being enforced by the server.// "DELETING" - The label lock is being deleted. The label lock will continue// to be enforced by the server until it has been fully removed.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "Capabilities") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Capabilities") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2LabelLock: A lock that can be applied to a label,field, or choice.
func (GoogleAppsDriveLabelsV2LabelLock)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2LabelLock) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2LabelLockCapabilities¶added inv0.112.0
type GoogleAppsDriveLabelsV2LabelLockCapabilities struct {// CanViewPolicy: True if the user is authorized to view the policy.CanViewPolicybool `json:"canViewPolicy,omitempty"`// ForceSendFields is a list of field names (e.g. "CanViewPolicy") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CanViewPolicy") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2LabelLockCapabilities: A description of a user'scapabilities on a label lock.
func (GoogleAppsDriveLabelsV2LabelLockCapabilities)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2LabelLockCapabilities) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2LabelPermission¶added inv0.112.0
type GoogleAppsDriveLabelsV2LabelPermission struct {// Audience: Audience to grant a role to. The magic value of// `audiences/default` may be used to apply the role to the default audience in// the context of the organization that owns the label.Audiencestring `json:"audience,omitempty"`// Email: Specifies the email address for a user or group principal. Not// populated for audience principals. User and group permissions may only be// inserted using an email address. On update requests, if email address is// specified, no principal should be specified.Emailstring `json:"email,omitempty"`// Group: Group resource name.Groupstring `json:"group,omitempty"`// Name: Resource name of this permission.Namestring `json:"name,omitempty"`// Person: Person resource name.Personstring `json:"person,omitempty"`// Role: The role the principal should have.//// Possible values:// "LABEL_ROLE_UNSPECIFIED" - Unknown role.// "READER" - A reader can read the label and associated metadata applied to// Drive items.// "APPLIER" - An applier can write associated metadata on Drive items in// which they also have write access to. Implies `READER`.// "ORGANIZER" - An organizer can pin this label in shared drives they manage// and add new appliers to the label.// "EDITOR" - Editors can make any update including deleting the label which// also deletes the associated Drive item metadata. Implies `APPLIER`.Rolestring `json:"role,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Audience") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Audience") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2LabelPermission: The permission that applies to aprincipal (user, group, audience) on a label.
func (GoogleAppsDriveLabelsV2LabelPermission)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2LabelPermission) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2LabelProperties¶
type GoogleAppsDriveLabelsV2LabelProperties struct {// Description: The description of the label.Descriptionstring `json:"description,omitempty"`// Title: Required. Title of the label.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Description") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2LabelProperties: Basic properties of the label.
func (GoogleAppsDriveLabelsV2LabelProperties)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2LabelProperties) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2LabelSchemaCapabilities¶
type GoogleAppsDriveLabelsV2LabelSchemaCapabilities struct {// CanDelete: Whether the user can delete this label. The user must have// permission and the label must be disabled.CanDeletebool `json:"canDelete,omitempty"`// CanDisable: Whether the user can disable this label. The user must have// permission and this label must not already be disabled.CanDisablebool `json:"canDisable,omitempty"`// CanEnable: Whether the user can enable this label. The user must have// permission and this label must be disabled.CanEnablebool `json:"canEnable,omitempty"`// CanUpdate: Whether the user can change this label.CanUpdatebool `json:"canUpdate,omitempty"`// ForceSendFields is a list of field names (e.g. "CanDelete") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CanDelete") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2LabelSchemaCapabilities: The capabilities related tothis label when editing the label.
func (GoogleAppsDriveLabelsV2LabelSchemaCapabilities)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2LabelSchemaCapabilities) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2Lifecycle¶
type GoogleAppsDriveLabelsV2Lifecycle struct {// DisabledPolicy: The policy that governs how to show a disabled label, field,// or selection choice.DisabledPolicy *GoogleAppsDriveLabelsV2LifecycleDisabledPolicy `json:"disabledPolicy,omitempty"`// HasUnpublishedChanges: Output only. Whether the object associated with this// lifecycle has unpublished changes.HasUnpublishedChangesbool `json:"hasUnpublishedChanges,omitempty"`// State: Output only. The state of the object associated with this lifecycle.//// Possible values:// "STATE_UNSPECIFIED" - Unknown State.// "UNPUBLISHED_DRAFT" - The initial state of an object. Once published, the// object can never return to this state. Once an object is published, certain// kinds of changes are no longer permitted.// "PUBLISHED" - The object has been published. The object might have// unpublished draft changes as indicated by `has_unpublished_changes`.// "DISABLED" - The object has been published and has since been disabled.// The object might have unpublished draft changes as indicated by// `has_unpublished_changes`.// "DELETED" - The object has been deleted.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "DisabledPolicy") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DisabledPolicy") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2Lifecycle: The lifecycle state of an object, such aslabel, field, or choice. For more information, see Label lifecycle(https://developers.google.com/workspace/drive/labels/guides/label-lifecycle).The lifecycle enforces the following transitions: * `UNPUBLISHED_DRAFT`(starting state) * `UNPUBLISHED_DRAFT` -> `PUBLISHED` * `UNPUBLISHED_DRAFT`-> (Deleted) * `PUBLISHED` -> `DISABLED` * `DISABLED` -> `PUBLISHED` *`DISABLED` -> (Deleted) The published and disabled states have some distinctcharacteristics: * `Published`: Some kinds of changes might be made to anobject in this state, in which case `has_unpublished_changes` will be true.Also, some kinds of changes aren't permitted. Generally, any change thatwould invalidate or cause new restrictions on existing metadata related tothe label are rejected. * `Disabled`: When disabled, the configured`DisabledPolicy` takes effect.
func (GoogleAppsDriveLabelsV2Lifecycle)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2Lifecycle) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2LifecycleDisabledPolicy¶
type GoogleAppsDriveLabelsV2LifecycleDisabledPolicy struct {// HideInSearch: Whether to hide this disabled object in the search menu for// Drive items. * When `false`, the object is generally shown in the UI as// disabled but it appears in the search results when searching for Drive// items. * When `true`, the object is generally hidden in the UI when// searching for Drive items.HideInSearchbool `json:"hideInSearch,omitempty"`// ShowInApply: Whether to show this disabled object in the apply menu on Drive// items. * When `true`, the object is generally shown in the UI as disabled// and is unselectable. * When `false`, the object is generally hidden in the// UI.ShowInApplybool `json:"showInApply,omitempty"`// ForceSendFields is a list of field names (e.g. "HideInSearch") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "HideInSearch") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2LifecycleDisabledPolicy: The policy that governs howto treat a disabled label, field, or selection choice in different contexts.
func (GoogleAppsDriveLabelsV2LifecycleDisabledPolicy)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2LifecycleDisabledPolicy) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2ListLabelLocksResponse¶added inv0.112.0
type GoogleAppsDriveLabelsV2ListLabelLocksResponse struct {// LabelLocks: Label locks.LabelLocks []*GoogleAppsDriveLabelsV2LabelLock `json:"labelLocks,omitempty"`// NextPageToken: The token of the next page in the response.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "LabelLocks") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LabelLocks") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2ListLabelLocksResponse: The response to a`ListLabelLocksRequest`.
func (GoogleAppsDriveLabelsV2ListLabelLocksResponse)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2ListLabelLocksResponse) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2ListLabelPermissionsResponse¶added inv0.112.0
type GoogleAppsDriveLabelsV2ListLabelPermissionsResponse struct {// LabelPermissions: Label permissions.LabelPermissions []*GoogleAppsDriveLabelsV2LabelPermission `json:"labelPermissions,omitempty"`// NextPageToken: The token of the next page in the response.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "LabelPermissions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LabelPermissions") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2ListLabelPermissionsResponse: Response for listingthe permissions on a label.
func (GoogleAppsDriveLabelsV2ListLabelPermissionsResponse)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2ListLabelPermissionsResponse) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2ListLabelsResponse¶
type GoogleAppsDriveLabelsV2ListLabelsResponse struct {// Labels: Labels.Labels []*GoogleAppsDriveLabelsV2Label `json:"labels,omitempty"`// NextPageToken: The token of the next page in the response.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Labels") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Labels") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2ListLabelsResponse: Response for listing labels.
func (GoogleAppsDriveLabelsV2ListLabelsResponse)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2ListLabelsResponse) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2ListLimits¶added inv0.112.0
type GoogleAppsDriveLabelsV2ListLimits struct {// MaxEntries: Maximum number of values allowed for the field type.MaxEntriesint64 `json:"maxEntries,omitempty"`// ForceSendFields is a list of field names (e.g. "MaxEntries") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MaxEntries") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2ListLimits: Limits for list-variant of a field type.
func (GoogleAppsDriveLabelsV2ListLimits)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2ListLimits) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2LockStatus¶
type GoogleAppsDriveLabelsV2LockStatus struct {// Locked: Output only. Indicates whether this label component is the (direct)// target of a label lock. A label component can be implicitly locked even if// it's not the direct target of a label lock, in which case this field is set// to false.Lockedbool `json:"locked,omitempty"`// ForceSendFields is a list of field names (e.g. "Locked") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Locked") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2LockStatus: Contains information about whether alabel component should be considered locked.
func (GoogleAppsDriveLabelsV2LockStatus)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2LockStatus) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2LongTextLimits¶added inv0.112.0
type GoogleAppsDriveLabelsV2LongTextLimits struct {// MaxLength: Maximum length allowed for a long text field type.MaxLengthint64 `json:"maxLength,omitempty"`// MinLength: Minimum length allowed for a long text field type.MinLengthint64 `json:"minLength,omitempty"`// ForceSendFields is a list of field names (e.g. "MaxLength") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MaxLength") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2LongTextLimits: Limits for long text field type.
func (GoogleAppsDriveLabelsV2LongTextLimits)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2LongTextLimits) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2PublishLabelRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2PublishLabelRequest struct {// LanguageCode: The BCP-47 language code to use for evaluating localized field// labels. When not specified, values in the default configured language will// be used.LanguageCodestring `json:"languageCode,omitempty"`// UseAdminAccess: Set to `true` in order to use the user's admin credentials.// The server will verify the user is an admin for the label before allowing// access.UseAdminAccessbool `json:"useAdminAccess,omitempty"`// WriteControl: Provides control over how write requests are executed.// Defaults to unset, which means the last write wins.WriteControl *GoogleAppsDriveLabelsV2WriteControl `json:"writeControl,omitempty"`// ForceSendFields is a list of field names (e.g. "LanguageCode") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LanguageCode") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2PublishLabelRequest: Request to publish a label.
func (GoogleAppsDriveLabelsV2PublishLabelRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2PublishLabelRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2SelectionLimits¶added inv0.112.0
type GoogleAppsDriveLabelsV2SelectionLimits struct {// ListLimits: Limits for list-variant of a field type.ListLimits *GoogleAppsDriveLabelsV2ListLimits `json:"listLimits,omitempty"`// MaxChoices: Maximum number of choices.MaxChoicesint64 `json:"maxChoices,omitempty"`// MaxDeletedChoices: Maximum number of deleted choices.MaxDeletedChoicesint64 `json:"maxDeletedChoices,omitempty"`// MaxDisplayNameLength: Maximum length for display name.MaxDisplayNameLengthint64 `json:"maxDisplayNameLength,omitempty"`// MaxIdLength: Maximum ID length for a selection option.MaxIdLengthint64 `json:"maxIdLength,omitempty"`// ForceSendFields is a list of field names (e.g. "ListLimits") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ListLimits") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2SelectionLimits: Limits for selection field type.
func (GoogleAppsDriveLabelsV2SelectionLimits)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2SelectionLimits) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2TextLimits¶added inv0.112.0
type GoogleAppsDriveLabelsV2TextLimits struct {// MaxLength: Maximum length allowed for a text field type.MaxLengthint64 `json:"maxLength,omitempty"`// MinLength: Minimum length allowed for a text field type.MinLengthint64 `json:"minLength,omitempty"`// ForceSendFields is a list of field names (e.g. "MaxLength") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MaxLength") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2TextLimits: Limits for text field type.
func (GoogleAppsDriveLabelsV2TextLimits)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2TextLimits) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest struct {// CopyMode: Required. Indicates how the applied label and field values should// be copied when a Drive item is copied.//// Possible values:// "COPY_MODE_UNSPECIFIED" - Copy mode unspecified.// "DO_NOT_COPY" - The applied label and field values aren't copied by// default when the Drive item it's applied to is copied.// "ALWAYS_COPY" - The applied label and field values are always copied when// the Drive item it's applied to is copied. Only admins can use this mode.// "COPY_APPLIABLE" - The applied label and field values are copied if the// label is appliable by the user making the copy.CopyModestring `json:"copyMode,omitempty"`// LanguageCode: The BCP-47 language code to use for evaluating localized field// labels. When not specified, values in the default configured language will// be used.LanguageCodestring `json:"languageCode,omitempty"`// UseAdminAccess: Set to `true` in order to use the user's admin credentials.// The server will verify the user is an admin for the label before allowing// access.UseAdminAccessbool `json:"useAdminAccess,omitempty"`// View: When specified, only certain fields belonging to the indicated view// will be returned.//// Possible values:// "LABEL_VIEW_BASIC" - Implies the field mask:// `name,id,revision_id,label_type,properties.*`// "LABEL_VIEW_FULL" - All possible fields.Viewstring `json:"view,omitempty"`// ForceSendFields is a list of field names (e.g. "CopyMode") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CopyMode") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest: Request to update the`CopyMode` of the given label. Changes to this policy aren't revisioned,don't require publishing, and take effect immediately. \
func (GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest¶added inv0.237.0
type GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest struct {// EnabledAppSettings: Required. The new `EnabledAppSettings` value for the// label.EnabledAppSettings *GoogleAppsDriveLabelsV2LabelEnabledAppSettings `json:"enabledAppSettings,omitempty"`// LanguageCode: Optional. The BCP-47 language code to use for evaluating// localized field labels. When not specified, values in the default configured// language will be used.LanguageCodestring `json:"languageCode,omitempty"`// UseAdminAccess: Optional. Set to `true` in order to use the user's admin// credentials. The server will verify the user is an admin for the label// before allowing access.UseAdminAccessbool `json:"useAdminAccess,omitempty"`// View: Optional. When specified, only certain fields belonging to the// indicated view will be returned.//// Possible values:// "LABEL_VIEW_BASIC" - Implies the field mask:// `name,id,revision_id,label_type,properties.*`// "LABEL_VIEW_FULL" - All possible fields.Viewstring `json:"view,omitempty"`// ForceSendFields is a list of field names (e.g. "EnabledAppSettings") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EnabledAppSettings") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest: Request toupdate the `EnabledAppSettings` of the given label. This change is notrevisioned, doesn't require publishing, and takes effect immediately. \
func (GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest)MarshalJSON¶added inv0.237.0
func (sGoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2UpdateLabelPermissionRequest¶added inv0.112.0
type GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest struct {// LabelPermission: Required. The permission to create or update on the label.LabelPermission *GoogleAppsDriveLabelsV2LabelPermission `json:"labelPermission,omitempty"`// Parent: Required. The parent label resource name.Parentstring `json:"parent,omitempty"`// UseAdminAccess: Set to `true` in order to use the user's admin credentials.// The server will verify the user is an admin for the label before allowing// access.UseAdminAccessbool `json:"useAdminAccess,omitempty"`// ForceSendFields is a list of field names (e.g. "LabelPermission") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LabelPermission") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest: Updates a labelpermission. Permissions affect the label resource as a whole, aren'trevisioned, and don't require publishing.
func (GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2UpdateLabelPermissionRequest) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2UserCapabilities¶added inv0.112.0
type GoogleAppsDriveLabelsV2UserCapabilities struct {// CanAccessLabelManager: Output only. Whether the user is allowed access to// the label manager.CanAccessLabelManagerbool `json:"canAccessLabelManager,omitempty"`// CanAdministrateLabels: Output only. Whether the user is an administrator for// the shared labels feature.CanAdministrateLabelsbool `json:"canAdministrateLabels,omitempty"`// CanCreateAdminLabels: Output only. Whether the user is allowed to create// admin labels.CanCreateAdminLabelsbool `json:"canCreateAdminLabels,omitempty"`// CanCreateSharedLabels: Output only. Whether the user is allowed to create// shared labels.CanCreateSharedLabelsbool `json:"canCreateSharedLabels,omitempty"`// Name: Output only. Resource name for the user capabilities.Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CanAccessLabelManager") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CanAccessLabelManager") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2UserCapabilities: The capabilities of a user.
func (GoogleAppsDriveLabelsV2UserCapabilities)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2UserCapabilities) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2UserInfo¶
type GoogleAppsDriveLabelsV2UserInfo struct {// Person: The identifier for this user that can be used with the People API// (https://developers.google.com/people) to get more information. For example,// `people/12345678`.Personstring `json:"person,omitempty"`// ForceSendFields is a list of field names (e.g. "Person") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Person") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2UserInfo: Information about a user.
func (GoogleAppsDriveLabelsV2UserInfo)MarshalJSON¶
func (sGoogleAppsDriveLabelsV2UserInfo) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2UserLimits¶added inv0.112.0
type GoogleAppsDriveLabelsV2UserLimits struct {// ListLimits: Limits for list-variant of a field type.ListLimits *GoogleAppsDriveLabelsV2ListLimits `json:"listLimits,omitempty"`// ForceSendFields is a list of field names (e.g. "ListLimits") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ListLimits") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2UserLimits: Limits for Field.Type.USER.
func (GoogleAppsDriveLabelsV2UserLimits)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2UserLimits) MarshalJSON() ([]byte,error)
typeGoogleAppsDriveLabelsV2WriteControl¶added inv0.112.0
type GoogleAppsDriveLabelsV2WriteControl struct {// RequiredRevisionId: The revision ID of the label that the write request will// be applied to. If this isn't the latest revision of the label, the request// will not be processed and will return a 400 Bad Request error.RequiredRevisionIdstring `json:"requiredRevisionId,omitempty"`// ForceSendFields is a list of field names (e.g. "RequiredRevisionId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RequiredRevisionId") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAppsDriveLabelsV2WriteControl: Provides control over how writerequests are executed. When not specified, the last write wins.
func (GoogleAppsDriveLabelsV2WriteControl)MarshalJSON¶added inv0.112.0
func (sGoogleAppsDriveLabelsV2WriteControl) MarshalJSON() ([]byte,error)
typeGoogleProtobufEmpty¶added inv0.112.0
type GoogleProtobufEmpty struct {// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`}GoogleProtobufEmpty: A generic empty message that you can re-use to avoiddefining duplicated empty messages in your APIs. A typical example is to useit as the request or the response type of an API method. For instance:service Foo { rpc Bar(google.protobuf.Empty) returns(google.protobuf.Empty); }
typeGoogleTypeColor¶
type GoogleTypeColor struct {// Alpha: The fraction of this color that should be applied to the pixel. That// is, the final pixel color is defined by the equation: `pixel color = alpha *// (this color) + (1.0 - alpha) * (background color)` This means that a value// of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to a// completely transparent color. This uses a wrapper message rather than a// simple float scalar so that it is possible to distinguish between a default// value and the value being unset. If omitted, this color object is rendered// as a solid color (as if the alpha value had been explicitly given a value of// 1.0).Alphafloat64 `json:"alpha,omitempty"`// Blue: The amount of blue in the color as a value in the interval [0, 1].Bluefloat64 `json:"blue,omitempty"`// Green: The amount of green in the color as a value in the interval [0, 1].Greenfloat64 `json:"green,omitempty"`// Red: The amount of red in the color as a value in the interval [0, 1].Redfloat64 `json:"red,omitempty"`// ForceSendFields is a list of field names (e.g. "Alpha") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Alpha") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleTypeColor: Represents a color in the RGBA color space. Thisrepresentation is designed for simplicity of conversion to and from colorrepresentations in various languages over compactness. For example, thefields of this representation can be trivially provided to the constructorof `java.awt.Color` in Java; it can also be trivially provided to UIColor's`+colorWithRed:green:blue:alpha` method in iOS; and, with just a littlework, it can be easily formatted into a CSS `rgba()` string in JavaScript.This reference page doesn't have information about the absolute color spacethat should be used to interpret the RGB value—for example, sRGB, AdobeRGB, DCI-P3, and BT.2020. By default, applications should assume the sRGBcolor space. When color equality needs to be decided, implementations,unless documented otherwise, treat two colors as equal if all their red,green, blue, and alpha values each differ by at most `1e-5`. Example (Java):import com.google.type.Color; // ... public static java.awt.ColorfromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ?protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color(protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); }public static Color toProto(java.awt.Color color) { float red = (float)color.getRed(); float green = (float) color.getGreen(); float blue = (float)color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder =Color .newBuilder() .setRed(red / denominator) .setGreen(green /denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if(alpha != 255) { result.setAlpha( FloatValue .newBuilder().setValue(((float) alpha) / denominator) .build()); } returnresultBuilder.build(); } // ... Example (iOS / Obj-C): // ... staticUIColor* fromProto(Color* protocolor) { float red = [protocolor red]; floatgreen = [protocolor green]; float blue = [protocolor blue]; FloatValue*alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:redgreen:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color){ CGFloat red, green, blue, alpha; if (![color getRed:&red green:&greenblue:&blue alpha:&alpha]) { return nil; } Color* result = [[Color alloc]init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue];if (alpha <= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; }[result autorelease]; return result; } // ... Example (JavaScript): // ...var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red ||0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue|| 0.0; var red = Math.floor(redFrac * 255); var green =Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if(!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } varalphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green,blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(”);}; var rgbToCssColor = function(red, green, blue) { var rgbNumber = newNumber((red << 16) | (green << 8) | blue); var hexString =rgbNumber.toString(16); var missingZeros = 6 - hexString.length; varresultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) {resultBuilder.push('0'); } resultBuilder.push(hexString); returnresultBuilder.join(”); }; // ...
func (GoogleTypeColor)MarshalJSON¶
func (sGoogleTypeColor) MarshalJSON() ([]byte,error)
func (*GoogleTypeColor)UnmarshalJSON¶
func (s *GoogleTypeColor) UnmarshalJSON(data []byte)error
typeGoogleTypeDate¶
type GoogleTypeDate struct {// Day: Day of a month. Must be from 1 to 31 and valid for the year and month,// or 0 to specify a year by itself or a year and month where the day isn't// significant.Dayint64 `json:"day,omitempty"`// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without// a month and day.Monthint64 `json:"month,omitempty"`// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date// without a year.Yearint64 `json:"year,omitempty"`// ForceSendFields is a list of field names (e.g. "Day") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Day") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleTypeDate: Represents a whole or partial calendar date, such as abirthday. The time of day and time zone are either specified elsewhere orare insignificant. The date is relative to the Gregorian Calendar. This canrepresent one of the following: * A full date, with non-zero year, month,and day values. * A month and day, with a zero year (for example, ananniversary). * A year on its own, with a zero month and a zero day. * Ayear and month, with a zero day (for example, a credit card expirationdate). Related types: * google.type.TimeOfDay * google.type.DateTime *google.protobuf.Timestamp
func (GoogleTypeDate)MarshalJSON¶
func (sGoogleTypeDate) MarshalJSON() ([]byte,error)
typeLabelsCreateCall¶added inv0.112.0
type LabelsCreateCall struct {// contains filtered or unexported fields}func (*LabelsCreateCall)Context¶added inv0.112.0
func (c *LabelsCreateCall) Context(ctxcontext.Context) *LabelsCreateCall
Context sets the context to be used in this call's Do method.
func (*LabelsCreateCall)Do¶added inv0.112.0
func (c *LabelsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2Label,error)
Do executes the "drivelabels.labels.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2Label.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LabelsCreateCall)Fields¶added inv0.112.0
func (c *LabelsCreateCall) Fields(s ...googleapi.Field) *LabelsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsCreateCall)Header¶added inv0.112.0
func (c *LabelsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LabelsCreateCall)LanguageCode¶added inv0.112.0
func (c *LabelsCreateCall) LanguageCode(languageCodestring) *LabelsCreateCall
LanguageCode sets the optional parameter "languageCode": The BCP-47 languagecode to use for evaluating localized field labels in response. When notspecified, values in the default configured language will be used.
func (*LabelsCreateCall)UseAdminAccess¶added inv0.112.0
func (c *LabelsCreateCall) UseAdminAccess(useAdminAccessbool) *LabelsCreateCall
UseAdminAccess sets the optional parameter "useAdminAccess": Set to `true`in order to use the user's admin privileges. The server will verify the useris an admin before allowing access.
typeLabelsDeleteCall¶added inv0.112.0
type LabelsDeleteCall struct {// contains filtered or unexported fields}func (*LabelsDeleteCall)Context¶added inv0.112.0
func (c *LabelsDeleteCall) Context(ctxcontext.Context) *LabelsDeleteCall
Context sets the context to be used in this call's Do method.
func (*LabelsDeleteCall)Do¶added inv0.112.0
func (c *LabelsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty,error)
Do executes the "drivelabels.labels.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*LabelsDeleteCall)Fields¶added inv0.112.0
func (c *LabelsDeleteCall) Fields(s ...googleapi.Field) *LabelsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsDeleteCall)Header¶added inv0.112.0
func (c *LabelsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LabelsDeleteCall)UseAdminAccess¶added inv0.112.0
func (c *LabelsDeleteCall) UseAdminAccess(useAdminAccessbool) *LabelsDeleteCall
UseAdminAccess sets the optional parameter "useAdminAccess": Set to `true`in order to use the user's admin credentials. The server will verify theuser is an admin for the label before allowing access.
func (*LabelsDeleteCall)WriteControlRequiredRevisionId¶added inv0.112.0
func (c *LabelsDeleteCall) WriteControlRequiredRevisionId(writeControlRequiredRevisionIdstring) *LabelsDeleteCall
WriteControlRequiredRevisionId sets the optional parameter"writeControl.requiredRevisionId": The revision ID of the label that thewrite request will be applied to. If this isn't the latest revision of thelabel, the request will not be processed and will return a 400 Bad Requesterror.
typeLabelsDeltaCall¶added inv0.112.0
type LabelsDeltaCall struct {// contains filtered or unexported fields}func (*LabelsDeltaCall)Context¶added inv0.112.0
func (c *LabelsDeltaCall) Context(ctxcontext.Context) *LabelsDeltaCall
Context sets the context to be used in this call's Do method.
func (*LabelsDeltaCall)Do¶added inv0.112.0
func (c *LabelsDeltaCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse,error)
Do executes the "drivelabels.labels.delta" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LabelsDeltaCall)Fields¶added inv0.112.0
func (c *LabelsDeltaCall) Fields(s ...googleapi.Field) *LabelsDeltaCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsDeltaCall)Header¶added inv0.112.0
func (c *LabelsDeltaCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeLabelsDisableCall¶added inv0.112.0
type LabelsDisableCall struct {// contains filtered or unexported fields}func (*LabelsDisableCall)Context¶added inv0.112.0
func (c *LabelsDisableCall) Context(ctxcontext.Context) *LabelsDisableCall
Context sets the context to be used in this call's Do method.
func (*LabelsDisableCall)Do¶added inv0.112.0
func (c *LabelsDisableCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2Label,error)
Do executes the "drivelabels.labels.disable" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2Label.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LabelsDisableCall)Fields¶added inv0.112.0
func (c *LabelsDisableCall) Fields(s ...googleapi.Field) *LabelsDisableCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsDisableCall)Header¶added inv0.112.0
func (c *LabelsDisableCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeLabelsEnableCall¶added inv0.112.0
type LabelsEnableCall struct {// contains filtered or unexported fields}func (*LabelsEnableCall)Context¶added inv0.112.0
func (c *LabelsEnableCall) Context(ctxcontext.Context) *LabelsEnableCall
Context sets the context to be used in this call's Do method.
func (*LabelsEnableCall)Do¶added inv0.112.0
func (c *LabelsEnableCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2Label,error)
Do executes the "drivelabels.labels.enable" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2Label.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LabelsEnableCall)Fields¶added inv0.112.0
func (c *LabelsEnableCall) Fields(s ...googleapi.Field) *LabelsEnableCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsEnableCall)Header¶added inv0.112.0
func (c *LabelsEnableCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeLabelsGetCall¶
type LabelsGetCall struct {// contains filtered or unexported fields}func (*LabelsGetCall)Context¶
func (c *LabelsGetCall) Context(ctxcontext.Context) *LabelsGetCall
Context sets the context to be used in this call's Do method.
func (*LabelsGetCall)Do¶
func (c *LabelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2Label,error)
Do executes the "drivelabels.labels.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2Label.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LabelsGetCall)Fields¶
func (c *LabelsGetCall) Fields(s ...googleapi.Field) *LabelsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsGetCall)Header¶
func (c *LabelsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LabelsGetCall)IfNoneMatch¶
func (c *LabelsGetCall) IfNoneMatch(entityTagstring) *LabelsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*LabelsGetCall)LanguageCode¶
func (c *LabelsGetCall) LanguageCode(languageCodestring) *LabelsGetCall
LanguageCode sets the optional parameter "languageCode": The BCP-47 languagecode to use for evaluating localized field labels. When not specified,values in the default configured language are used.
func (*LabelsGetCall)UseAdminAccess¶
func (c *LabelsGetCall) UseAdminAccess(useAdminAccessbool) *LabelsGetCall
UseAdminAccess sets the optional parameter "useAdminAccess": Set to `true`in order to use the user's admin credentials. The server verifies that theuser is an admin for the label before allowing access.
func (*LabelsGetCall)View¶
func (c *LabelsGetCall) View(viewstring) *LabelsGetCall
View sets the optional parameter "view": When specified, only certain fieldsbelonging to the indicated view are returned.
Possible values:
"LABEL_VIEW_BASIC" - Implies the field mask:
`name,id,revision_id,label_type,properties.*`
"LABEL_VIEW_FULL" - All possible fields.
typeLabelsListCall¶
type LabelsListCall struct {// contains filtered or unexported fields}func (*LabelsListCall)Context¶
func (c *LabelsListCall) Context(ctxcontext.Context) *LabelsListCall
Context sets the context to be used in this call's Do method.
func (*LabelsListCall)Customer¶added inv0.115.0
func (c *LabelsListCall) Customer(customerstring) *LabelsListCall
Customer sets the optional parameter "customer": The customer to scope thislist request to. For example: `customers/abcd1234`. If unset, will returnall labels within the current customer.
func (*LabelsListCall)Do¶
func (c *LabelsListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2ListLabelsResponse,error)
Do executes the "drivelabels.labels.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2ListLabelsResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LabelsListCall)Fields¶
func (c *LabelsListCall) Fields(s ...googleapi.Field) *LabelsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsListCall)Header¶
func (c *LabelsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LabelsListCall)IfNoneMatch¶
func (c *LabelsListCall) IfNoneMatch(entityTagstring) *LabelsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*LabelsListCall)LanguageCode¶
func (c *LabelsListCall) LanguageCode(languageCodestring) *LabelsListCall
LanguageCode sets the optional parameter "languageCode": The BCP-47 languagecode to use for evaluating localized field labels. When not specified,values in the default configured language are used.
func (*LabelsListCall)MinimumRole¶
func (c *LabelsListCall) MinimumRole(minimumRolestring) *LabelsListCall
MinimumRole sets the optional parameter "minimumRole": Specifies the levelof access the user must have on the returned labels. The minimum role a usermust have on a label. Defaults to `READER`.
Possible values:
"LABEL_ROLE_UNSPECIFIED" - Unknown role."READER" - A reader can read the label and associated metadata applied to
Drive items.
"APPLIER" - An applier can write associated metadata on Drive items in
which they also have write access to. Implies `READER`.
"ORGANIZER" - An organizer can pin this label in shared drives they manage
and add new appliers to the label.
"EDITOR" - Editors can make any update including deleting the label which
also deletes the associated Drive item metadata. Implies `APPLIER`.
func (*LabelsListCall)PageSize¶
func (c *LabelsListCall) PageSize(pageSizeint64) *LabelsListCall
PageSize sets the optional parameter "pageSize": Maximum number of labels toreturn per page. Default: 50. Max: 200.
func (*LabelsListCall)PageToken¶
func (c *LabelsListCall) PageToken(pageTokenstring) *LabelsListCall
PageToken sets the optional parameter "pageToken": The token of the page toreturn.
func (*LabelsListCall)Pages¶
func (c *LabelsListCall) Pages(ctxcontext.Context, f func(*GoogleAppsDriveLabelsV2ListLabelsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*LabelsListCall)PublishedOnly¶
func (c *LabelsListCall) PublishedOnly(publishedOnlybool) *LabelsListCall
PublishedOnly sets the optional parameter "publishedOnly": Whether toinclude only published labels in the results. * When `true`, only thecurrent published label revisions are returned. Disabled labels areincluded. Returned label resource names reference the published revision(`labels/{id}/{revision_id}`). * When `false`, the current label revisionsare returned, which might not be published. Returned label resource namesdon't reference a specific revision (`labels/{id}`).
func (*LabelsListCall)UseAdminAccess¶
func (c *LabelsListCall) UseAdminAccess(useAdminAccessbool) *LabelsListCall
UseAdminAccess sets the optional parameter "useAdminAccess": Set to `true`in order to use the user's admin credentials. This will return all labelswithin the customer.
func (*LabelsListCall)View¶
func (c *LabelsListCall) View(viewstring) *LabelsListCall
View sets the optional parameter "view": When specified, only certain fieldsbelonging to the indicated view are returned.
Possible values:
"LABEL_VIEW_BASIC" - Implies the field mask:
`name,id,revision_id,label_type,properties.*`
"LABEL_VIEW_FULL" - All possible fields.
typeLabelsLocksListCall¶added inv0.112.0
type LabelsLocksListCall struct {// contains filtered or unexported fields}func (*LabelsLocksListCall)Context¶added inv0.112.0
func (c *LabelsLocksListCall) Context(ctxcontext.Context) *LabelsLocksListCall
Context sets the context to be used in this call's Do method.
func (*LabelsLocksListCall)Do¶added inv0.112.0
func (c *LabelsLocksListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2ListLabelLocksResponse,error)
Do executes the "drivelabels.labels.locks.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2ListLabelLocksResponse.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LabelsLocksListCall)Fields¶added inv0.112.0
func (c *LabelsLocksListCall) Fields(s ...googleapi.Field) *LabelsLocksListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsLocksListCall)Header¶added inv0.112.0
func (c *LabelsLocksListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LabelsLocksListCall)IfNoneMatch¶added inv0.112.0
func (c *LabelsLocksListCall) IfNoneMatch(entityTagstring) *LabelsLocksListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*LabelsLocksListCall)PageSize¶added inv0.112.0
func (c *LabelsLocksListCall) PageSize(pageSizeint64) *LabelsLocksListCall
PageSize sets the optional parameter "pageSize": Maximum number of locks toreturn per page. Default: 100. Max: 200.
func (*LabelsLocksListCall)PageToken¶added inv0.112.0
func (c *LabelsLocksListCall) PageToken(pageTokenstring) *LabelsLocksListCall
PageToken sets the optional parameter "pageToken": The token of the page toreturn.
func (*LabelsLocksListCall)Pages¶added inv0.112.0
func (c *LabelsLocksListCall) Pages(ctxcontext.Context, f func(*GoogleAppsDriveLabelsV2ListLabelLocksResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeLabelsLocksService¶added inv0.112.0
type LabelsLocksService struct {// contains filtered or unexported fields}funcNewLabelsLocksService¶added inv0.112.0
func NewLabelsLocksService(s *Service) *LabelsLocksService
func (*LabelsLocksService)List¶added inv0.112.0
func (r *LabelsLocksService) List(parentstring) *LabelsLocksListCall
List: Lists the label locks on a label.
- parent: Label on which locks are applied. Format: `labels/{label}`.
typeLabelsPermissionsBatchDeleteCall¶added inv0.112.0
type LabelsPermissionsBatchDeleteCall struct {// contains filtered or unexported fields}func (*LabelsPermissionsBatchDeleteCall)Context¶added inv0.112.0
func (c *LabelsPermissionsBatchDeleteCall) Context(ctxcontext.Context) *LabelsPermissionsBatchDeleteCall
Context sets the context to be used in this call's Do method.
func (*LabelsPermissionsBatchDeleteCall)Do¶added inv0.112.0
func (c *LabelsPermissionsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty,error)
Do executes the "drivelabels.labels.permissions.batchDelete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*LabelsPermissionsBatchDeleteCall)Fields¶added inv0.112.0
func (c *LabelsPermissionsBatchDeleteCall) Fields(s ...googleapi.Field) *LabelsPermissionsBatchDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsPermissionsBatchDeleteCall)Header¶added inv0.112.0
func (c *LabelsPermissionsBatchDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeLabelsPermissionsBatchUpdateCall¶added inv0.112.0
type LabelsPermissionsBatchUpdateCall struct {// contains filtered or unexported fields}func (*LabelsPermissionsBatchUpdateCall)Context¶added inv0.112.0
func (c *LabelsPermissionsBatchUpdateCall) Context(ctxcontext.Context) *LabelsPermissionsBatchUpdateCall
Context sets the context to be used in this call's Do method.
func (*LabelsPermissionsBatchUpdateCall)Do¶added inv0.112.0
func (c *LabelsPermissionsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse,error)
Do executes the "drivelabels.labels.permissions.batchUpdate" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*LabelsPermissionsBatchUpdateCall)Fields¶added inv0.112.0
func (c *LabelsPermissionsBatchUpdateCall) Fields(s ...googleapi.Field) *LabelsPermissionsBatchUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsPermissionsBatchUpdateCall)Header¶added inv0.112.0
func (c *LabelsPermissionsBatchUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeLabelsPermissionsCreateCall¶added inv0.112.0
type LabelsPermissionsCreateCall struct {// contains filtered or unexported fields}func (*LabelsPermissionsCreateCall)Context¶added inv0.112.0
func (c *LabelsPermissionsCreateCall) Context(ctxcontext.Context) *LabelsPermissionsCreateCall
Context sets the context to be used in this call's Do method.
func (*LabelsPermissionsCreateCall)Do¶added inv0.112.0
func (c *LabelsPermissionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2LabelPermission,error)
Do executes the "drivelabels.labels.permissions.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2LabelPermission.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LabelsPermissionsCreateCall)Fields¶added inv0.112.0
func (c *LabelsPermissionsCreateCall) Fields(s ...googleapi.Field) *LabelsPermissionsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsPermissionsCreateCall)Header¶added inv0.112.0
func (c *LabelsPermissionsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LabelsPermissionsCreateCall)UseAdminAccess¶added inv0.112.0
func (c *LabelsPermissionsCreateCall) UseAdminAccess(useAdminAccessbool) *LabelsPermissionsCreateCall
UseAdminAccess sets the optional parameter "useAdminAccess": Set to `true`in order to use the user's admin credentials. The server will verify theuser is an admin for the label before allowing access.
typeLabelsPermissionsDeleteCall¶added inv0.112.0
type LabelsPermissionsDeleteCall struct {// contains filtered or unexported fields}func (*LabelsPermissionsDeleteCall)Context¶added inv0.112.0
func (c *LabelsPermissionsDeleteCall) Context(ctxcontext.Context) *LabelsPermissionsDeleteCall
Context sets the context to be used in this call's Do method.
func (*LabelsPermissionsDeleteCall)Do¶added inv0.112.0
func (c *LabelsPermissionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty,error)
Do executes the "drivelabels.labels.permissions.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*LabelsPermissionsDeleteCall)Fields¶added inv0.112.0
func (c *LabelsPermissionsDeleteCall) Fields(s ...googleapi.Field) *LabelsPermissionsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsPermissionsDeleteCall)Header¶added inv0.112.0
func (c *LabelsPermissionsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LabelsPermissionsDeleteCall)UseAdminAccess¶added inv0.112.0
func (c *LabelsPermissionsDeleteCall) UseAdminAccess(useAdminAccessbool) *LabelsPermissionsDeleteCall
UseAdminAccess sets the optional parameter "useAdminAccess": Set to `true`in order to use the user's admin credentials. The server will verify theuser is an admin for the label before allowing access.
typeLabelsPermissionsListCall¶added inv0.112.0
type LabelsPermissionsListCall struct {// contains filtered or unexported fields}func (*LabelsPermissionsListCall)Context¶added inv0.112.0
func (c *LabelsPermissionsListCall) Context(ctxcontext.Context) *LabelsPermissionsListCall
Context sets the context to be used in this call's Do method.
func (*LabelsPermissionsListCall)Do¶added inv0.112.0
func (c *LabelsPermissionsListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2ListLabelPermissionsResponse,error)
Do executes the "drivelabels.labels.permissions.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2ListLabelPermissionsResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LabelsPermissionsListCall)Fields¶added inv0.112.0
func (c *LabelsPermissionsListCall) Fields(s ...googleapi.Field) *LabelsPermissionsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsPermissionsListCall)Header¶added inv0.112.0
func (c *LabelsPermissionsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LabelsPermissionsListCall)IfNoneMatch¶added inv0.112.0
func (c *LabelsPermissionsListCall) IfNoneMatch(entityTagstring) *LabelsPermissionsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*LabelsPermissionsListCall)PageSize¶added inv0.112.0
func (c *LabelsPermissionsListCall) PageSize(pageSizeint64) *LabelsPermissionsListCall
PageSize sets the optional parameter "pageSize": Maximum number ofpermissions to return per page. Default: 50. Max: 200.
func (*LabelsPermissionsListCall)PageToken¶added inv0.112.0
func (c *LabelsPermissionsListCall) PageToken(pageTokenstring) *LabelsPermissionsListCall
PageToken sets the optional parameter "pageToken": The token of the page toreturn.
func (*LabelsPermissionsListCall)Pages¶added inv0.112.0
func (c *LabelsPermissionsListCall) Pages(ctxcontext.Context, f func(*GoogleAppsDriveLabelsV2ListLabelPermissionsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*LabelsPermissionsListCall)UseAdminAccess¶added inv0.112.0
func (c *LabelsPermissionsListCall) UseAdminAccess(useAdminAccessbool) *LabelsPermissionsListCall
UseAdminAccess sets the optional parameter "useAdminAccess": Set to `true`in order to use the user's admin credentials. The server will verify theuser is an admin for the label before allowing access.
typeLabelsPermissionsService¶added inv0.112.0
type LabelsPermissionsService struct {// contains filtered or unexported fields}funcNewLabelsPermissionsService¶added inv0.112.0
func NewLabelsPermissionsService(s *Service) *LabelsPermissionsService
func (*LabelsPermissionsService)BatchDelete¶added inv0.112.0
func (r *LabelsPermissionsService) BatchDelete(parentstring, googleappsdrivelabelsv2batchdeletelabelpermissionsrequest *GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest) *LabelsPermissionsBatchDeleteCall
BatchDelete: Deletes label permissions. Permissions affect the labelresource as a whole, aren't revisioned, and don't require publishing.
- parent: The parent label resource name shared by all permissions beingdeleted. Format: `labels/{label}`. If this is set, the parent field in the`UpdateLabelPermissionRequest` messages must either be empty or match thisfield.
func (*LabelsPermissionsService)BatchUpdate¶added inv0.112.0
func (r *LabelsPermissionsService) BatchUpdate(parentstring, googleappsdrivelabelsv2batchupdatelabelpermissionsrequest *GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest) *LabelsPermissionsBatchUpdateCall
BatchUpdate: Updates label permissions. If a permission for the indicatedprincipal doesn't exist, a label permission is created, otherwise theexisting permission is updated. Permissions affect the label resource as awhole, aren't revisioned, and don't require publishing.
- parent: The parent label resource name shared by all permissions beingupdated. Format: `labels/{label}`. If this is set, the parent field in the`UpdateLabelPermissionRequest` messages must either be empty or match thisfield.
func (*LabelsPermissionsService)Create¶added inv0.112.0
func (r *LabelsPermissionsService) Create(parentstring, googleappsdrivelabelsv2labelpermission *GoogleAppsDriveLabelsV2LabelPermission) *LabelsPermissionsCreateCall
Create: Updates a label's permissions. If a permission for the indicatedprincipal doesn't exist, a label permission is created, otherwise theexisting permission is updated. Permissions affect the label resource as awhole, aren't revisioned, and don't require publishing.
- parent: The parent label resource name on the label permission is created.Format: `labels/{label}`.
func (*LabelsPermissionsService)Delete¶added inv0.112.0
func (r *LabelsPermissionsService) Delete(namestring) *LabelsPermissionsDeleteCall
Delete: Deletes a label's permission. Permissions affect the label resourceas a whole, aren't revisioned, and don't require publishing.
- name: Label permission resource name.
func (*LabelsPermissionsService)List¶added inv0.112.0
func (r *LabelsPermissionsService) List(parentstring) *LabelsPermissionsListCall
List: Lists a label's permissions.
- parent: The parent label resource name on which label permissions arelisted. Format: `labels/{label}`.
typeLabelsPublishCall¶added inv0.112.0
type LabelsPublishCall struct {// contains filtered or unexported fields}func (*LabelsPublishCall)Context¶added inv0.112.0
func (c *LabelsPublishCall) Context(ctxcontext.Context) *LabelsPublishCall
Context sets the context to be used in this call's Do method.
func (*LabelsPublishCall)Do¶added inv0.112.0
func (c *LabelsPublishCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2Label,error)
Do executes the "drivelabels.labels.publish" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2Label.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LabelsPublishCall)Fields¶added inv0.112.0
func (c *LabelsPublishCall) Fields(s ...googleapi.Field) *LabelsPublishCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsPublishCall)Header¶added inv0.112.0
func (c *LabelsPublishCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeLabelsRevisionsLocksListCall¶added inv0.112.0
type LabelsRevisionsLocksListCall struct {// contains filtered or unexported fields}func (*LabelsRevisionsLocksListCall)Context¶added inv0.112.0
func (c *LabelsRevisionsLocksListCall) Context(ctxcontext.Context) *LabelsRevisionsLocksListCall
Context sets the context to be used in this call's Do method.
func (*LabelsRevisionsLocksListCall)Do¶added inv0.112.0
func (c *LabelsRevisionsLocksListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2ListLabelLocksResponse,error)
Do executes the "drivelabels.labels.revisions.locks.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2ListLabelLocksResponse.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LabelsRevisionsLocksListCall)Fields¶added inv0.112.0
func (c *LabelsRevisionsLocksListCall) Fields(s ...googleapi.Field) *LabelsRevisionsLocksListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsRevisionsLocksListCall)Header¶added inv0.112.0
func (c *LabelsRevisionsLocksListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LabelsRevisionsLocksListCall)IfNoneMatch¶added inv0.112.0
func (c *LabelsRevisionsLocksListCall) IfNoneMatch(entityTagstring) *LabelsRevisionsLocksListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*LabelsRevisionsLocksListCall)PageSize¶added inv0.112.0
func (c *LabelsRevisionsLocksListCall) PageSize(pageSizeint64) *LabelsRevisionsLocksListCall
PageSize sets the optional parameter "pageSize": Maximum number of locks toreturn per page. Default: 100. Max: 200.
func (*LabelsRevisionsLocksListCall)PageToken¶added inv0.112.0
func (c *LabelsRevisionsLocksListCall) PageToken(pageTokenstring) *LabelsRevisionsLocksListCall
PageToken sets the optional parameter "pageToken": The token of the page toreturn.
func (*LabelsRevisionsLocksListCall)Pages¶added inv0.112.0
func (c *LabelsRevisionsLocksListCall) Pages(ctxcontext.Context, f func(*GoogleAppsDriveLabelsV2ListLabelLocksResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeLabelsRevisionsLocksService¶added inv0.112.0
type LabelsRevisionsLocksService struct {// contains filtered or unexported fields}funcNewLabelsRevisionsLocksService¶added inv0.112.0
func NewLabelsRevisionsLocksService(s *Service) *LabelsRevisionsLocksService
func (*LabelsRevisionsLocksService)List¶added inv0.112.0
func (r *LabelsRevisionsLocksService) List(parentstring) *LabelsRevisionsLocksListCall
List: Lists the label locks on a label.
- parent: Label on which locks are applied. Format: `labels/{label}`.
typeLabelsRevisionsPermissionsBatchDeleteCall¶added inv0.112.0
type LabelsRevisionsPermissionsBatchDeleteCall struct {// contains filtered or unexported fields}func (*LabelsRevisionsPermissionsBatchDeleteCall)Context¶added inv0.112.0
func (c *LabelsRevisionsPermissionsBatchDeleteCall) Context(ctxcontext.Context) *LabelsRevisionsPermissionsBatchDeleteCall
Context sets the context to be used in this call's Do method.
func (*LabelsRevisionsPermissionsBatchDeleteCall)Do¶added inv0.112.0
func (c *LabelsRevisionsPermissionsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty,error)
Do executes the "drivelabels.labels.revisions.permissions.batchDelete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*LabelsRevisionsPermissionsBatchDeleteCall)Fields¶added inv0.112.0
func (c *LabelsRevisionsPermissionsBatchDeleteCall) Fields(s ...googleapi.Field) *LabelsRevisionsPermissionsBatchDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsRevisionsPermissionsBatchDeleteCall)Header¶added inv0.112.0
func (c *LabelsRevisionsPermissionsBatchDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeLabelsRevisionsPermissionsBatchUpdateCall¶added inv0.112.0
type LabelsRevisionsPermissionsBatchUpdateCall struct {// contains filtered or unexported fields}func (*LabelsRevisionsPermissionsBatchUpdateCall)Context¶added inv0.112.0
func (c *LabelsRevisionsPermissionsBatchUpdateCall) Context(ctxcontext.Context) *LabelsRevisionsPermissionsBatchUpdateCall
Context sets the context to be used in this call's Do method.
func (*LabelsRevisionsPermissionsBatchUpdateCall)Do¶added inv0.112.0
func (c *LabelsRevisionsPermissionsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse,error)
Do executes the "drivelabels.labels.revisions.permissions.batchUpdate" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*LabelsRevisionsPermissionsBatchUpdateCall)Fields¶added inv0.112.0
func (c *LabelsRevisionsPermissionsBatchUpdateCall) Fields(s ...googleapi.Field) *LabelsRevisionsPermissionsBatchUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsRevisionsPermissionsBatchUpdateCall)Header¶added inv0.112.0
func (c *LabelsRevisionsPermissionsBatchUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeLabelsRevisionsPermissionsCreateCall¶added inv0.112.0
type LabelsRevisionsPermissionsCreateCall struct {// contains filtered or unexported fields}func (*LabelsRevisionsPermissionsCreateCall)Context¶added inv0.112.0
func (c *LabelsRevisionsPermissionsCreateCall) Context(ctxcontext.Context) *LabelsRevisionsPermissionsCreateCall
Context sets the context to be used in this call's Do method.
func (*LabelsRevisionsPermissionsCreateCall)Do¶added inv0.112.0
func (c *LabelsRevisionsPermissionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2LabelPermission,error)
Do executes the "drivelabels.labels.revisions.permissions.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2LabelPermission.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LabelsRevisionsPermissionsCreateCall)Fields¶added inv0.112.0
func (c *LabelsRevisionsPermissionsCreateCall) Fields(s ...googleapi.Field) *LabelsRevisionsPermissionsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsRevisionsPermissionsCreateCall)Header¶added inv0.112.0
func (c *LabelsRevisionsPermissionsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LabelsRevisionsPermissionsCreateCall)UseAdminAccess¶added inv0.112.0
func (c *LabelsRevisionsPermissionsCreateCall) UseAdminAccess(useAdminAccessbool) *LabelsRevisionsPermissionsCreateCall
UseAdminAccess sets the optional parameter "useAdminAccess": Set to `true`in order to use the user's admin credentials. The server will verify theuser is an admin for the label before allowing access.
typeLabelsRevisionsPermissionsDeleteCall¶added inv0.112.0
type LabelsRevisionsPermissionsDeleteCall struct {// contains filtered or unexported fields}func (*LabelsRevisionsPermissionsDeleteCall)Context¶added inv0.112.0
func (c *LabelsRevisionsPermissionsDeleteCall) Context(ctxcontext.Context) *LabelsRevisionsPermissionsDeleteCall
Context sets the context to be used in this call's Do method.
func (*LabelsRevisionsPermissionsDeleteCall)Do¶added inv0.112.0
func (c *LabelsRevisionsPermissionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty,error)
Do executes the "drivelabels.labels.revisions.permissions.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*LabelsRevisionsPermissionsDeleteCall)Fields¶added inv0.112.0
func (c *LabelsRevisionsPermissionsDeleteCall) Fields(s ...googleapi.Field) *LabelsRevisionsPermissionsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsRevisionsPermissionsDeleteCall)Header¶added inv0.112.0
func (c *LabelsRevisionsPermissionsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LabelsRevisionsPermissionsDeleteCall)UseAdminAccess¶added inv0.112.0
func (c *LabelsRevisionsPermissionsDeleteCall) UseAdminAccess(useAdminAccessbool) *LabelsRevisionsPermissionsDeleteCall
UseAdminAccess sets the optional parameter "useAdminAccess": Set to `true`in order to use the user's admin credentials. The server will verify theuser is an admin for the label before allowing access.
typeLabelsRevisionsPermissionsListCall¶added inv0.112.0
type LabelsRevisionsPermissionsListCall struct {// contains filtered or unexported fields}func (*LabelsRevisionsPermissionsListCall)Context¶added inv0.112.0
func (c *LabelsRevisionsPermissionsListCall) Context(ctxcontext.Context) *LabelsRevisionsPermissionsListCall
Context sets the context to be used in this call's Do method.
func (*LabelsRevisionsPermissionsListCall)Do¶added inv0.112.0
func (c *LabelsRevisionsPermissionsListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2ListLabelPermissionsResponse,error)
Do executes the "drivelabels.labels.revisions.permissions.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2ListLabelPermissionsResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LabelsRevisionsPermissionsListCall)Fields¶added inv0.112.0
func (c *LabelsRevisionsPermissionsListCall) Fields(s ...googleapi.Field) *LabelsRevisionsPermissionsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsRevisionsPermissionsListCall)Header¶added inv0.112.0
func (c *LabelsRevisionsPermissionsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LabelsRevisionsPermissionsListCall)IfNoneMatch¶added inv0.112.0
func (c *LabelsRevisionsPermissionsListCall) IfNoneMatch(entityTagstring) *LabelsRevisionsPermissionsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*LabelsRevisionsPermissionsListCall)PageSize¶added inv0.112.0
func (c *LabelsRevisionsPermissionsListCall) PageSize(pageSizeint64) *LabelsRevisionsPermissionsListCall
PageSize sets the optional parameter "pageSize": Maximum number ofpermissions to return per page. Default: 50. Max: 200.
func (*LabelsRevisionsPermissionsListCall)PageToken¶added inv0.112.0
func (c *LabelsRevisionsPermissionsListCall) PageToken(pageTokenstring) *LabelsRevisionsPermissionsListCall
PageToken sets the optional parameter "pageToken": The token of the page toreturn.
func (*LabelsRevisionsPermissionsListCall)Pages¶added inv0.112.0
func (c *LabelsRevisionsPermissionsListCall) Pages(ctxcontext.Context, f func(*GoogleAppsDriveLabelsV2ListLabelPermissionsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*LabelsRevisionsPermissionsListCall)UseAdminAccess¶added inv0.112.0
func (c *LabelsRevisionsPermissionsListCall) UseAdminAccess(useAdminAccessbool) *LabelsRevisionsPermissionsListCall
UseAdminAccess sets the optional parameter "useAdminAccess": Set to `true`in order to use the user's admin credentials. The server will verify theuser is an admin for the label before allowing access.
typeLabelsRevisionsPermissionsService¶added inv0.112.0
type LabelsRevisionsPermissionsService struct {// contains filtered or unexported fields}funcNewLabelsRevisionsPermissionsService¶added inv0.112.0
func NewLabelsRevisionsPermissionsService(s *Service) *LabelsRevisionsPermissionsService
func (*LabelsRevisionsPermissionsService)BatchDelete¶added inv0.112.0
func (r *LabelsRevisionsPermissionsService) BatchDelete(parentstring, googleappsdrivelabelsv2batchdeletelabelpermissionsrequest *GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest) *LabelsRevisionsPermissionsBatchDeleteCall
BatchDelete: Deletes label permissions. Permissions affect the labelresource as a whole, aren't revisioned, and don't require publishing.
- parent: The parent label resource name shared by all permissions beingdeleted. Format: `labels/{label}`. If this is set, the parent field in the`UpdateLabelPermissionRequest` messages must either be empty or match thisfield.
func (*LabelsRevisionsPermissionsService)BatchUpdate¶added inv0.112.0
func (r *LabelsRevisionsPermissionsService) BatchUpdate(parentstring, googleappsdrivelabelsv2batchupdatelabelpermissionsrequest *GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest) *LabelsRevisionsPermissionsBatchUpdateCall
BatchUpdate: Updates label permissions. If a permission for the indicatedprincipal doesn't exist, a label permission is created, otherwise theexisting permission is updated. Permissions affect the label resource as awhole, aren't revisioned, and don't require publishing.
- parent: The parent label resource name shared by all permissions beingupdated. Format: `labels/{label}`. If this is set, the parent field in the`UpdateLabelPermissionRequest` messages must either be empty or match thisfield.
func (*LabelsRevisionsPermissionsService)Create¶added inv0.112.0
func (r *LabelsRevisionsPermissionsService) Create(parentstring, googleappsdrivelabelsv2labelpermission *GoogleAppsDriveLabelsV2LabelPermission) *LabelsRevisionsPermissionsCreateCall
Create: Updates a label's permissions. If a permission for the indicatedprincipal doesn't exist, a label permission is created, otherwise theexisting permission is updated. Permissions affect the label resource as awhole, aren't revisioned, and don't require publishing.
- parent: The parent label resource name on the label permission is created.Format: `labels/{label}`.
func (*LabelsRevisionsPermissionsService)Delete¶added inv0.112.0
func (r *LabelsRevisionsPermissionsService) Delete(namestring) *LabelsRevisionsPermissionsDeleteCall
Delete: Deletes a label's permission. Permissions affect the label resourceas a whole, aren't revisioned, and don't require publishing.
- name: Label permission resource name.
func (*LabelsRevisionsPermissionsService)List¶added inv0.112.0
func (r *LabelsRevisionsPermissionsService) List(parentstring) *LabelsRevisionsPermissionsListCall
List: Lists a label's permissions.
- parent: The parent label resource name on which label permissions arelisted. Format: `labels/{label}`.
typeLabelsRevisionsService¶added inv0.112.0
type LabelsRevisionsService struct {Locks *LabelsRevisionsLocksServicePermissions *LabelsRevisionsPermissionsService// contains filtered or unexported fields}funcNewLabelsRevisionsService¶added inv0.112.0
func NewLabelsRevisionsService(s *Service) *LabelsRevisionsService
func (*LabelsRevisionsService)UpdatePermissions¶added inv0.112.0
func (r *LabelsRevisionsService) UpdatePermissions(parentstring, googleappsdrivelabelsv2labelpermission *GoogleAppsDriveLabelsV2LabelPermission) *LabelsRevisionsUpdatePermissionsCall
UpdatePermissions: Updates a label's permissions. If a permission for theindicated principal doesn't exist, a label permission is created, otherwisethe existing permission is updated. Permissions affect the label resource asa whole, aren't revisioned, and don't require publishing.
- parent: The parent label resource name.
typeLabelsRevisionsUpdatePermissionsCall¶added inv0.112.0
type LabelsRevisionsUpdatePermissionsCall struct {// contains filtered or unexported fields}func (*LabelsRevisionsUpdatePermissionsCall)Context¶added inv0.112.0
func (c *LabelsRevisionsUpdatePermissionsCall) Context(ctxcontext.Context) *LabelsRevisionsUpdatePermissionsCall
Context sets the context to be used in this call's Do method.
func (*LabelsRevisionsUpdatePermissionsCall)Do¶added inv0.112.0
func (c *LabelsRevisionsUpdatePermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2LabelPermission,error)
Do executes the "drivelabels.labels.revisions.updatePermissions" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2LabelPermission.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LabelsRevisionsUpdatePermissionsCall)Fields¶added inv0.112.0
func (c *LabelsRevisionsUpdatePermissionsCall) Fields(s ...googleapi.Field) *LabelsRevisionsUpdatePermissionsCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsRevisionsUpdatePermissionsCall)Header¶added inv0.112.0
func (c *LabelsRevisionsUpdatePermissionsCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LabelsRevisionsUpdatePermissionsCall)UseAdminAccess¶added inv0.112.0
func (c *LabelsRevisionsUpdatePermissionsCall) UseAdminAccess(useAdminAccessbool) *LabelsRevisionsUpdatePermissionsCall
UseAdminAccess sets the optional parameter "useAdminAccess": Set to `true`in order to use the user's admin credentials. The server will verify theuser is an admin for the label before allowing access.
typeLabelsService¶
type LabelsService struct {Locks *LabelsLocksServicePermissions *LabelsPermissionsServiceRevisions *LabelsRevisionsService// contains filtered or unexported fields}funcNewLabelsService¶
func NewLabelsService(s *Service) *LabelsService
func (*LabelsService)Create¶added inv0.112.0
func (r *LabelsService) Create(googleappsdrivelabelsv2label *GoogleAppsDriveLabelsV2Label) *LabelsCreateCall
Create: Creates a label. For more information, see Create and publish alabel(https://developers.google.com/workspace/drive/labels/guides/create-label).
func (*LabelsService)Delete¶added inv0.112.0
func (r *LabelsService) Delete(namestring) *LabelsDeleteCall
Delete: Permanently deletes a label and related metadata on Drive items. Formore information, see Disable, enable, and delete a label(https://developers.google.com/workspace/drive/labels/guides/disable-delete-label).Once deleted, the label and related Drive item metadata will be deleted.Only draft labels and disabled labels may be deleted.
- name: Label resource name.
func (*LabelsService)Delta¶added inv0.112.0
func (r *LabelsService) Delta(namestring, googleappsdrivelabelsv2deltaupdatelabelrequest *GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest) *LabelsDeltaCall
Delta: Updates a single label by applying a set of update requests resultingin a new draft revision. For more information, see Update a label(https://developers.google.com/workspace/drive/labels/guides/update-label).The batch update is all-or-nothing: If any of the update requests areinvalid, no changes are applied. The resulting draft revision must bepublished before the changes may be used with Drive items.
- name: The resource name of the label to update.
func (*LabelsService)Disable¶added inv0.112.0
func (r *LabelsService) Disable(namestring, googleappsdrivelabelsv2disablelabelrequest *GoogleAppsDriveLabelsV2DisableLabelRequest) *LabelsDisableCall
Disable: Disable a published label. For more information, see Disable,enable, and delete a label(https://developers.google.com/workspace/drive/labels/guides/disable-delete-label).Disabling a label will result in a new disabled published revision based onthe current published revision. If there's a draft revision, a new disableddraft revision will be created based on the latest draft revision. Olderdraft revisions will be deleted. Once disabled, a label may be deleted with`DeleteLabel`.
- name: Label resource name.
func (*LabelsService)Enable¶added inv0.112.0
func (r *LabelsService) Enable(namestring, googleappsdrivelabelsv2enablelabelrequest *GoogleAppsDriveLabelsV2EnableLabelRequest) *LabelsEnableCall
Enable: Enable a disabled label and restore it to its published state. Formore information, see Disable, enable, and delete a label(https://developers.google.com/workspace/drive/labels/guides/disable-delete-label).This will result in a new published revision based on the current disabledpublished revision. If there's an existing disabled draft revision, a newrevision will be created based on that draft and will be enabled.
- name: Label resource name.
func (*LabelsService)Get¶
func (r *LabelsService) Get(namestring) *LabelsGetCall
Get: Get a label by its resource name. For more information, see Search forlabels(https://developers.google.com/workspace/drive/labels/guides/search-label).Resource name may be any of: * `labels/{id}` - See `labels/{id}@latest` *`labels/{id}@latest` - Gets the latest revision of the label. *`labels/{id}@published` - Gets the current published revision of the label.* `labels/{id}@{revision_id}` - Gets the label at the specified revision ID.
- name: Label resource name. May be any of: * `labels/{id}` (equivalent tolabels/{id}@latest) * `labels/{id}@latest` * `labels/{id}@published` *`labels/{id}@{revision_id}`.
func (*LabelsService)List¶
func (r *LabelsService) List() *LabelsListCall
List: List labels. For more information, see Search for labels(https://developers.google.com/workspace/drive/labels/guides/search-label).
func (*LabelsService)Publish¶added inv0.112.0
func (r *LabelsService) Publish(namestring, googleappsdrivelabelsv2publishlabelrequest *GoogleAppsDriveLabelsV2PublishLabelRequest) *LabelsPublishCall
Publish: Publish all draft changes to the label. Once published, the labelmay not return to its draft state. For more information, see Create andpublish a label(https://developers.google.com/workspace/drive/labels/guides/create-label).Publishing a label will result in a new published revision. All previousdraft revisions will be deleted. Previous published revisions will be keptbut are subject to automated deletion as needed. For more information, seeLabel lifecycle(https://developers.google.com/workspace/drive/labels/guides/label-lifecycle).Once published, some changes are no longer permitted. Generally, any changethat would invalidate or cause new restrictions on existing metadata relatedto the label will be rejected. For example, the following changes to a labelwill be rejected after the label is published: * The label cannot bedirectly deleted. It must be disabled first, then deleted. *`Field.FieldType` cannot be changed. * Changes to field validation optionscannot reject something that was previously accepted. * Reducing the maximumentries.
- name: Label resource name.
func (*LabelsService)UpdateLabelCopyMode¶added inv0.112.0
func (r *LabelsService) UpdateLabelCopyMode(namestring, googleappsdrivelabelsv2updatelabelcopymoderequest *GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest) *LabelsUpdateLabelCopyModeCall
UpdateLabelCopyMode: Updates a label's `CopyMode`. Changes to this policyaren't revisioned, don't require publishing, and take effect immediately.
- name: The resource name of the label to update.
func (*LabelsService)UpdateLabelEnabledAppSettings¶added inv0.237.0
func (r *LabelsService) UpdateLabelEnabledAppSettings(namestring, googleappsdrivelabelsv2updatelabelenabledappsettingsrequest *GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest) *LabelsUpdateLabelEnabledAppSettingsCall
UpdateLabelEnabledAppSettings: Updates a label's `EnabledAppSettings`.Enabling a label in a Google Workspace app allows it to be used in that app.This change isn't revisioned, doesn't require publishing, and takes effectimmediately.
- name: The resource name of the label to update. The resource name of thelabel to update.
func (*LabelsService)UpdatePermissions¶added inv0.112.0
func (r *LabelsService) UpdatePermissions(parentstring, googleappsdrivelabelsv2labelpermission *GoogleAppsDriveLabelsV2LabelPermission) *LabelsUpdatePermissionsCall
UpdatePermissions: Updates a label's permissions. If a permission for theindicated principal doesn't exist, a label permission is created, otherwisethe existing permission is updated. Permissions affect the label resource asa whole, aren't revisioned, and don't require publishing.
- parent: The parent label resource name.
typeLabelsUpdateLabelCopyModeCall¶added inv0.112.0
type LabelsUpdateLabelCopyModeCall struct {// contains filtered or unexported fields}func (*LabelsUpdateLabelCopyModeCall)Context¶added inv0.112.0
func (c *LabelsUpdateLabelCopyModeCall) Context(ctxcontext.Context) *LabelsUpdateLabelCopyModeCall
Context sets the context to be used in this call's Do method.
func (*LabelsUpdateLabelCopyModeCall)Do¶added inv0.112.0
func (c *LabelsUpdateLabelCopyModeCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2Label,error)
Do executes the "drivelabels.labels.updateLabelCopyMode" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2Label.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LabelsUpdateLabelCopyModeCall)Fields¶added inv0.112.0
func (c *LabelsUpdateLabelCopyModeCall) Fields(s ...googleapi.Field) *LabelsUpdateLabelCopyModeCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsUpdateLabelCopyModeCall)Header¶added inv0.112.0
func (c *LabelsUpdateLabelCopyModeCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeLabelsUpdateLabelEnabledAppSettingsCall¶added inv0.237.0
type LabelsUpdateLabelEnabledAppSettingsCall struct {// contains filtered or unexported fields}func (*LabelsUpdateLabelEnabledAppSettingsCall)Context¶added inv0.237.0
func (c *LabelsUpdateLabelEnabledAppSettingsCall) Context(ctxcontext.Context) *LabelsUpdateLabelEnabledAppSettingsCall
Context sets the context to be used in this call's Do method.
func (*LabelsUpdateLabelEnabledAppSettingsCall)Do¶added inv0.237.0
func (c *LabelsUpdateLabelEnabledAppSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2Label,error)
Do executes the "drivelabels.labels.updateLabelEnabledAppSettings" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2Label.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LabelsUpdateLabelEnabledAppSettingsCall)Fields¶added inv0.237.0
func (c *LabelsUpdateLabelEnabledAppSettingsCall) Fields(s ...googleapi.Field) *LabelsUpdateLabelEnabledAppSettingsCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsUpdateLabelEnabledAppSettingsCall)Header¶added inv0.237.0
func (c *LabelsUpdateLabelEnabledAppSettingsCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeLabelsUpdatePermissionsCall¶added inv0.112.0
type LabelsUpdatePermissionsCall struct {// contains filtered or unexported fields}func (*LabelsUpdatePermissionsCall)Context¶added inv0.112.0
func (c *LabelsUpdatePermissionsCall) Context(ctxcontext.Context) *LabelsUpdatePermissionsCall
Context sets the context to be used in this call's Do method.
func (*LabelsUpdatePermissionsCall)Do¶added inv0.112.0
func (c *LabelsUpdatePermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2LabelPermission,error)
Do executes the "drivelabels.labels.updatePermissions" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2LabelPermission.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LabelsUpdatePermissionsCall)Fields¶added inv0.112.0
func (c *LabelsUpdatePermissionsCall) Fields(s ...googleapi.Field) *LabelsUpdatePermissionsCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LabelsUpdatePermissionsCall)Header¶added inv0.112.0
func (c *LabelsUpdatePermissionsCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LabelsUpdatePermissionsCall)UseAdminAccess¶added inv0.112.0
func (c *LabelsUpdatePermissionsCall) UseAdminAccess(useAdminAccessbool) *LabelsUpdatePermissionsCall
UseAdminAccess sets the optional parameter "useAdminAccess": Set to `true`in order to use the user's admin credentials. The server will verify theuser is an admin for the label before allowing access.
typeLimitsGetLabelCall¶added inv0.112.0
type LimitsGetLabelCall struct {// contains filtered or unexported fields}func (*LimitsGetLabelCall)Context¶added inv0.112.0
func (c *LimitsGetLabelCall) Context(ctxcontext.Context) *LimitsGetLabelCall
Context sets the context to be used in this call's Do method.
func (*LimitsGetLabelCall)Do¶added inv0.112.0
func (c *LimitsGetLabelCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2LabelLimits,error)
Do executes the "drivelabels.limits.getLabel" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2LabelLimits.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*LimitsGetLabelCall)Fields¶added inv0.112.0
func (c *LimitsGetLabelCall) Fields(s ...googleapi.Field) *LimitsGetLabelCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*LimitsGetLabelCall)Header¶added inv0.112.0
func (c *LimitsGetLabelCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*LimitsGetLabelCall)IfNoneMatch¶added inv0.112.0
func (c *LimitsGetLabelCall) IfNoneMatch(entityTagstring) *LimitsGetLabelCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*LimitsGetLabelCall)Name¶added inv0.112.0
func (c *LimitsGetLabelCall) Name(namestring) *LimitsGetLabelCall
Name sets the optional parameter "name": Required. Label revision resourcename must be: "limits/label".
typeLimitsService¶added inv0.112.0
type LimitsService struct {// contains filtered or unexported fields}funcNewLimitsService¶added inv0.112.0
func NewLimitsService(s *Service) *LimitsService
func (*LimitsService)GetLabel¶added inv0.112.0
func (r *LimitsService) GetLabel() *LimitsGetLabelCall
GetLabel: Get the constraints on the structure of a label; such as, themaximum number of fields allowed and maximum length of the label title.
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentLabels *LabelsServiceLimits *LimitsServiceUsers *UsersService// contains filtered or unexported fields} funcNewdeprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
funcNewService¶
NewService creates a new Service.
typeUsersGetCapabilitiesCall¶added inv0.112.0
type UsersGetCapabilitiesCall struct {// contains filtered or unexported fields}func (*UsersGetCapabilitiesCall)Context¶added inv0.112.0
func (c *UsersGetCapabilitiesCall) Context(ctxcontext.Context) *UsersGetCapabilitiesCall
Context sets the context to be used in this call's Do method.
func (*UsersGetCapabilitiesCall)Customer¶added inv0.115.0
func (c *UsersGetCapabilitiesCall) Customer(customerstring) *UsersGetCapabilitiesCall
Customer sets the optional parameter "customer": The customer to scope thisrequest to. For example: `customers/abcd1234`. If unset, it will returnsettings within the current customer.
func (*UsersGetCapabilitiesCall)Do¶added inv0.112.0
func (c *UsersGetCapabilitiesCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2UserCapabilities,error)
Do executes the "drivelabels.users.getCapabilities" call.Any non-2xx status code is an error. Response headers are in either*GoogleAppsDriveLabelsV2UserCapabilities.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*UsersGetCapabilitiesCall)Fields¶added inv0.112.0
func (c *UsersGetCapabilitiesCall) Fields(s ...googleapi.Field) *UsersGetCapabilitiesCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*UsersGetCapabilitiesCall)Header¶added inv0.112.0
func (c *UsersGetCapabilitiesCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*UsersGetCapabilitiesCall)IfNoneMatch¶added inv0.112.0
func (c *UsersGetCapabilitiesCall) IfNoneMatch(entityTagstring) *UsersGetCapabilitiesCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeUsersService¶added inv0.112.0
type UsersService struct {// contains filtered or unexported fields}funcNewUsersService¶added inv0.112.0
func NewUsersService(s *Service) *UsersService
func (*UsersService)GetCapabilities¶added inv0.112.0
func (r *UsersService) GetCapabilities(namestring) *UsersGetCapabilitiesCall
GetCapabilities: Gets the user capabilities.
- name: The resource name of the user. Only "users/me/capabilities" issupported.