Documentation ¶
Overview ¶
Package drivelabels provides access to the Drive Labels API.
For product documentation, see: https://developers.google.com/drive/labels
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 for authentication.
For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
To use an API key for authentication (note: some APIs do not support API keys), use 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 OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) drivelabelsService, err := drivelabels.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See https://godoc.org/google.golang.org/api/option/ for details on options.
Index ¶
- type GoogleAppsDriveLabelsV2BadgeColors
- type GoogleAppsDriveLabelsV2BadgeConfig
- type GoogleAppsDriveLabelsV2Field
- type GoogleAppsDriveLabelsV2FieldAppliedCapabilities
- type GoogleAppsDriveLabelsV2FieldDateOptions
- type GoogleAppsDriveLabelsV2FieldDisplayHints
- type GoogleAppsDriveLabelsV2FieldIntegerOptions
- type GoogleAppsDriveLabelsV2FieldListOptions
- type GoogleAppsDriveLabelsV2FieldProperties
- type GoogleAppsDriveLabelsV2FieldSchemaCapabilities
- type GoogleAppsDriveLabelsV2FieldSelectionOptions
- type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice
- type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities
- type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints
- type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties
- type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities
- type GoogleAppsDriveLabelsV2FieldTextOptions
- type GoogleAppsDriveLabelsV2FieldUserOptions
- type GoogleAppsDriveLabelsV2Label
- type GoogleAppsDriveLabelsV2LabelAppliedCapabilities
- type GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy
- type GoogleAppsDriveLabelsV2LabelDisplayHints
- type GoogleAppsDriveLabelsV2LabelProperties
- type GoogleAppsDriveLabelsV2LabelSchemaCapabilities
- type GoogleAppsDriveLabelsV2Lifecycle
- type GoogleAppsDriveLabelsV2LifecycleDisabledPolicy
- type GoogleAppsDriveLabelsV2ListLabelsResponse
- type GoogleAppsDriveLabelsV2LockStatus
- type GoogleAppsDriveLabelsV2UserInfo
- type GoogleTypeColor
- type GoogleTypeDate
- 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) 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 LabelsService
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleAppsDriveLabelsV2BadgeColors ¶
type GoogleAppsDriveLabelsV2BadgeColors struct { // BackgroundColor: Output only. Badge background which pairs with the // foreground BackgroundColor *GoogleTypeColor `json:"backgroundColor,omitempty"` // ForegroundColor: Output only. Badge foreground which 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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2BadgeColors: The color derived from BadgeConfig and coerced to the nearest supported color.
func (*GoogleAppsDriveLabelsV2BadgeColors) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2BadgeColors) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2BadgeConfig ¶
type GoogleAppsDriveLabelsV2BadgeConfig struct { // Color: The color of the badge. When not specified, no badge will be // rendered. This color will be coerced 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 will be used. PriorityOverride int64 `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2BadgeConfig: Badge status of the label.
func (*GoogleAppsDriveLabelsV2BadgeConfig) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2BadgeConfig) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2Field ¶
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. CreateTime string `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. DisableTime string `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, and will match the form // `([a-zA-Z0-9_])+ Id string `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" QueryKey string `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. UpdateTime string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2Field: Defines a field which has a display name, data type, and other configuration options. This field defines the kind of metadata that may be set on a Drive item.
func (*GoogleAppsDriveLabelsV2Field) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2Field) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2FieldAppliedCapabilities ¶
type GoogleAppsDriveLabelsV2FieldAppliedCapabilities struct { // CanRead: Whether the user can read related applied metadata on items. CanRead bool `json:"canRead,omitempty"` // CanSearch: Whether the user can search for drive items referencing // this field. CanSearch bool `json:"canSearch,omitempty"` // CanWrite: Whether the user can set this field on drive items. CanWrite bool `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2FieldAppliedCapabilities: The capabilities related to this field on applied metadata.
func (*GoogleAppsDriveLabelsV2FieldAppliedCapabilities) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2FieldAppliedCapabilities) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2FieldDateOptions ¶
type GoogleAppsDriveLabelsV2FieldDateOptions struct { // DateFormat: Output only. ICU Date format. DateFormat string `json:"dateFormat,omitempty"` // DateFormatType: Localized date formatting option. Field values will // be rendered in this format according to their locale. // // Possible values: // "DATE_FORMAT_UNSPECIFIED" - Date format unspecified. // "LONG_DATE" - Includes full month name. e.g. January 12, 1999 MMMM // d, y // "SHORT_DATE" - Short, numeric, representation. e.g. 12/13/99 M/d/yy DateFormatType string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2FieldDateOptions: Options for the date field type.
func (*GoogleAppsDriveLabelsV2FieldDateOptions) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2FieldDateOptions) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2FieldDisplayHints ¶
type GoogleAppsDriveLabelsV2FieldDisplayHints struct { // Disabled: Whether the field should be shown in the UI as disabled. Disabled bool `json:"disabled,omitempty"` // HiddenInSearch: This Field should be hidden in the search menu. HiddenInSearch bool `json:"hiddenInSearch,omitempty"` // Required: Whether the Field should be shown as required in the UI. Required bool `json:"required,omitempty"` // ShownInApply: This Field should be shown when applying values to a // Drive item. ShownInApply bool `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2FieldDisplayHints: UI Display hints for rendering a Field.
func (*GoogleAppsDriveLabelsV2FieldDisplayHints) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2FieldDisplayHints) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2FieldIntegerOptions ¶
type GoogleAppsDriveLabelsV2FieldIntegerOptions struct { // MaxValue: Output only. The maximum valid value for the integer field. MaxValue int64 `json:"maxValue,omitempty,string"` // MinValue: Output only. The minimum valid value for the integer field. MinValue int64 `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2FieldIntegerOptions: Options for the Integer field type.
func (*GoogleAppsDriveLabelsV2FieldIntegerOptions) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2FieldIntegerOptions) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2FieldListOptions ¶
type GoogleAppsDriveLabelsV2FieldListOptions struct { // MaxEntries: Maximum number of entries permitted. MaxEntries int64 `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2FieldListOptions: Options for a multi-valued variant of an associated field type.
func (*GoogleAppsDriveLabelsV2FieldListOptions) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2FieldListOptions) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2FieldProperties ¶
type GoogleAppsDriveLabelsV2FieldProperties struct { // DisplayName: Required. The display text to show in the UI identifying // this field. DisplayName string `json:"displayName,omitempty"` // InsertBeforeField: Input only. Insert or move this Field to be // ordered before the indicated Field. If empty, the Field will be // placed at the end of the list. InsertBeforeField string `json:"insertBeforeField,omitempty"` // Required: Whether the field should be marked as required. Required bool `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2FieldProperties: The basic properties of the field.
func (*GoogleAppsDriveLabelsV2FieldProperties) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2FieldProperties) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2FieldSchemaCapabilities ¶
type GoogleAppsDriveLabelsV2FieldSchemaCapabilities struct { // CanDelete: Whether the user can delete this Field. The user must have // permissions and the Field must be deprecated. CanDelete bool `json:"canDelete,omitempty"` // CanDisable: Whether the user can disable this Field. The user must // have permissions and this Field must not already be disabled. CanDisable bool `json:"canDisable,omitempty"` // CanEnable: Whether the user can enable this Field. The user must have // permissions and this Field must be disabled. CanEnable bool `json:"canEnable,omitempty"` // CanUpdate: Whether the user can change this field. CanUpdate bool `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2FieldSchemaCapabilities: The capabilities related to this Field when editing the Field.
func (*GoogleAppsDriveLabelsV2FieldSchemaCapabilities) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2FieldSchemaCapabilities) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2FieldSelectionOptions ¶
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 that this field support 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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2FieldSelectionOptions: Options for the selection field type.
func (*GoogleAppsDriveLabelsV2FieldSelectionOptions) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2FieldSelectionOptions) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice ¶
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. CreateTime string `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. DisableTime string `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 will be autogenerated, // and will match the form `([a-zA-Z0-9_])+`. Id string `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. PublishTime string `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. UpdateTime string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice: Selection field Choice.
func (*GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities ¶
type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities struct { // CanRead: Whether the user can read related applied metadata on items. CanRead bool `json:"canRead,omitempty"` // CanSearch: Whether the user can use this Choice in search queries. CanSearch bool `json:"canSearch,omitempty"` // CanSelect: Whether the user can select this Choice on an item. CanSelect bool `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities:
The capabilities related to this Choice on applied metadata.
func (*GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints ¶
type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints struct { // BadgeColors: The colors to use for the badge. Coerced 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 that 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. BadgePriority int64 `json:"badgePriority,omitempty,string"` // DarkBadgeColors: The dark-mode color to use for the badge. Coerced 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. Disabled bool `json:"disabled,omitempty"` // HiddenInSearch: This option should be hidden in the search menu. HiddenInSearch bool `json:"hiddenInSearch,omitempty"` // ShownInApply: This option should be shown in the menu when applying // values to a Drive item. ShownInApply bool `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints: UI Display hints for rendering a Option.
func (*GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties ¶
type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties struct { // BadgeConfig: The badge configuration for this Choice. When set, the // Label that owns this Choice will be considered a "badged label". BadgeConfig *GoogleAppsDriveLabelsV2BadgeConfig `json:"badgeConfig,omitempty"` // Description: The description of this Label. Description string `json:"description,omitempty"` // DisplayName: Required. The display text to show in the UI identifying // this field. DisplayName string `json:"displayName,omitempty"` // InsertBeforeChoice: Input only. Insert or move this Choice to be // ordered before the indicated Choice. If empty, the Choice will be // placed at the end of the list. InsertBeforeChoice string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties: Basic properties of the Choice.
func (*GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities ¶
type GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities struct { // CanDelete: Whether the user can delete this Choice. CanDelete bool `json:"canDelete,omitempty"` // CanDisable: Whether the user can disable this Chioce. CanDisable bool `json:"canDisable,omitempty"` // CanEnable: Whether the user can enable this Choice. CanEnable bool `json:"canEnable,omitempty"` // CanUpdate: Whether the user can update this Choice. CanUpdate bool `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities: The capabilities related to this Choice when editing the Choice.
func (*GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2FieldTextOptions ¶
type GoogleAppsDriveLabelsV2FieldTextOptions struct { // MaxLength: Output only. The maximum valid length of values for the // text field. MaxLength int64 `json:"maxLength,omitempty"` // MinLength: Output only. The minimum valid length of values for the // text field. MinLength int64 `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2FieldTextOptions: Options for the Text field type.
func (*GoogleAppsDriveLabelsV2FieldTextOptions) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2FieldTextOptions) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2FieldUserOptions ¶
type GoogleAppsDriveLabelsV2FieldUserOptions struct { // ListOptions: When specified, indicates that this field support 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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2FieldUserOptions: Options for the user field type.
func (*GoogleAppsDriveLabelsV2FieldUserOptions) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2FieldUserOptions) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2Label ¶
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 its // applied to Drive items. AppliedLabelPolicy *GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy `json:"appliedLabelPolicy,omitempty"` // CreateTime: Output only. The time this label was created. CreateTime string `json:"createTime,omitempty"` // Creator: Output only. The user who created this label. Creator *GoogleAppsDriveLabelsV2UserInfo `json:"creator,omitempty"` // DisableTime: Output only. The time this label was disabled. This // value has no meaning when the label is not disabled. DisableTime string `json:"disableTime,omitempty"` // Disabler: Output only. The user who disabled this label. This value // has no meaning when the label is not disabled. Disabler *GoogleAppsDriveLabelsV2UserInfo `json:"disabler,omitempty"` // DisplayHints: Output only. UI Display hints for rendering the Label. DisplayHints *GoogleAppsDriveLabelsV2LabelDisplayHints `json:"displayHints,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])+` Id string `json:"id,omitempty"` // LabelType: Required. The type of this 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. LabelType string `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. LearnMoreUri string `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. Name string `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 is not published. PublishTime string `json:"publishTime,omitempty"` // Publisher: Output only. The user who published this label. This value // has no meaning when the label is not published. Publisher *GoogleAppsDriveLabelsV2UserInfo `json:"publisher,omitempty"` // RevisionCreateTime: Output only. The time this label revision was // created. RevisionCreateTime string `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 may 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])+` RevisionId string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2Label: A Label defines a taxonomy which may be applied to a Drive items in order to organize and search across Items. Labels may be simple strings, or may contain Fields that describe additional metadata which can be further used to organize and search Drive items.
func (*GoogleAppsDriveLabelsV2Label) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2Label) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2LabelAppliedCapabilities ¶
type GoogleAppsDriveLabelsV2LabelAppliedCapabilities struct { // CanApply: Whether the user can apply this Label to items. CanApply bool `json:"canApply,omitempty"` // CanRead: Whether the user can read applied metadata related to this // label. CanRead bool `json:"canRead,omitempty"` // CanRemove: Whether the user can remove this Label from items. CanRemove bool `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2LabelAppliedCapabilities: The capabilities a user has on this Label's applied metadata.
func (*GoogleAppsDriveLabelsV2LabelAppliedCapabilities) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2LabelAppliedCapabilities) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy ¶
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 will not be // copied by default when the Drive item it is applied to is copied. // "ALWAYS_COPY" - The applied Label and Field values will always be // copied when the Drive item it is applied to is copied. Only admins // may use this mode. // "COPY_APPLIABLE" - The applied Label and Field values will be // copied if and only if the label is appliable by the user making the // copy. CopyMode string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy: Behavior of this Label when its applied to Drive items.
func (*GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2LabelDisplayHints ¶
type GoogleAppsDriveLabelsV2LabelDisplayHints struct { // Disabled: Whether the Label should be shown in the UI as disabled. Disabled bool `json:"disabled,omitempty"` // HiddenInSearch: This Label should be hidden in the search menu when // searching for Drive items. HiddenInSearch bool `json:"hiddenInSearch,omitempty"` // Priority: Order to display label in a list Priority int64 `json:"priority,omitempty,string"` // ShownInApply: This Label should be shown in the apply menu. ShownInApply bool `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2LabelDisplayHints: UI Display hints for rendering the Label.
func (*GoogleAppsDriveLabelsV2LabelDisplayHints) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2LabelDisplayHints) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2LabelProperties ¶
type GoogleAppsDriveLabelsV2LabelProperties struct { // Description: The description of this Label. Description string `json:"description,omitempty"` // Title: Required. Title of the Label. Title string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2LabelProperties: Basic properties of the Label.
func (*GoogleAppsDriveLabelsV2LabelProperties) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2LabelProperties) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2LabelSchemaCapabilities ¶
type GoogleAppsDriveLabelsV2LabelSchemaCapabilities struct { // CanDelete: Whether the user can delete this Label. The user must have // permission and the Label must be disabled. CanDelete bool `json:"canDelete,omitempty"` // CanDisable: Whether the user can disable this Label. The user must // have permission and this Label must not already be disabled. CanDisable bool `json:"canDisable,omitempty"` // CanEnable: Whether the user can enable this Label. The user must have // permission and this Label must be disabled. CanEnable bool `json:"canEnable,omitempty"` // CanUpdate: Whether the user can change this Label. CanUpdate bool `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2LabelSchemaCapabilities: The capabilities related to this Label when editing the Label.
func (*GoogleAppsDriveLabelsV2LabelSchemaCapabilities) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2LabelSchemaCapabilities) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2Lifecycle ¶
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. HasUnpublishedChanges bool `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 may 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 may have // unpublished draft changes as indicated by `has_unpublished_changes`. // "DISABLED" - The object has been published, and has since been // disabled. The object may have unpublished draft changes as indicated // by `has_unpublished_changes`. // "DELETED" - The object has been deleted State string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2Lifecycle: The lifecycle state of an object, e.g. Label, Field, or Choice. 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 distinct characteristics: * Published - Some kinds of changes may be made to an object in this state, in which case `has_unpublished_changes` will be true. Some kinds of changes are not permitted. Generally, any change that would invalidate or cause new restrictions on existing metadata related to the Label will be rejected. * Disabled - When disabled, the configured `DisabledPolicy` will take effect.
func (*GoogleAppsDriveLabelsV2Lifecycle) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2Lifecycle) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2LifecycleDisabledPolicy ¶
type GoogleAppsDriveLabelsV2LifecycleDisabledPolicy struct { // HideInSearch: Whether to hide this disabled object in the search menu // for Drive items. * When `false` the object will generally be shown in // the UI as disabled (but still permit searching) when searching for // Drive items. * When `true` the object will generally be hidden in the // UI when searching for Drive items. HideInSearch bool `json:"hideInSearch,omitempty"` // ShowInApply: Whether to show this disabled object in the apply menu // on Drive items. * When `true` the object will generally be shown in // the UI as disabled and is unselectable. * When `false` the object // will generally be hidden in the UI. ShowInApply bool `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2LifecycleDisabledPolicy: The policy that governs how to treat a disabled label, field, or selection choice in different contexts.
func (*GoogleAppsDriveLabelsV2LifecycleDisabledPolicy) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2LifecycleDisabledPolicy) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2ListLabelsResponse ¶
type GoogleAppsDriveLabelsV2ListLabelsResponse struct { // Labels: Labels. Labels []*GoogleAppsDriveLabelsV2Label `json:"labels,omitempty"` // NextPageToken: The token of the next page in the response. NextPageToken string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2ListLabelsResponse: Response for listing Labels.
func (*GoogleAppsDriveLabelsV2ListLabelsResponse) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2ListLabelsResponse) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2LockStatus ¶
type GoogleAppsDriveLabelsV2LockStatus struct { // Locked: Output only. Indicates whether this label component is the // (direct) target of a LabelLock. A label component may be implicitly // locked even if it is not the direct target of a LabelLock, in which // case this field will be false. Locked bool `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2LockStatus: Contains information about whether a label component should be considered locked.
func (*GoogleAppsDriveLabelsV2LockStatus) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2LockStatus) MarshalJSON() ([]byte, error)
type GoogleAppsDriveLabelsV2UserInfo ¶
type GoogleAppsDriveLabelsV2UserInfo struct { // Person: The identifier for this user who can be used with the People // API to get more information. e.g. people/12345678 Person string `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleAppsDriveLabelsV2UserInfo: Information about a user.
func (*GoogleAppsDriveLabelsV2UserInfo) MarshalJSON ¶
func (s *GoogleAppsDriveLabelsV2UserInfo) MarshalJSON() ([]byte, error)
type GoogleTypeColor ¶
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). Alpha float64 `json:"alpha,omitempty"` // Blue: The amount of blue in the color as a value in the interval [0, // 1]. Blue float64 `json:"blue,omitempty"` // Green: The amount of green in the color as a value in the interval // [0, 1]. Green float64 `json:"green,omitempty"` // Red: The amount of red in the color as a value in the interval [0, // 1]. Red float64 `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleTypeColor: Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to/from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `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 little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page doesn't carry information about the absolute color space that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default, applications should assume the sRGB color 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.Color fromProto(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()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [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:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&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); } var alphaFrac = 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 = new Number((red << 16) | (green << 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(”); }; // ...
func (*GoogleTypeColor) MarshalJSON ¶
func (s *GoogleTypeColor) MarshalJSON() ([]byte, error)
func (*GoogleTypeColor) UnmarshalJSON ¶
func (s *GoogleTypeColor) UnmarshalJSON(data []byte) error
type GoogleTypeDate ¶
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. Day int64 `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. Month int64 `json:"month,omitempty"` // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a // date without a year. Year int64 `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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GoogleTypeDate: Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent 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, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
func (*GoogleTypeDate) MarshalJSON ¶
func (s *GoogleTypeDate) MarshalJSON() ([]byte, error)
type LabelsGetCall ¶
type LabelsGetCall struct {
// contains filtered or unexported fields
}
func (*LabelsGetCall) Context ¶
func (c *LabelsGetCall) Context(ctx context.Context) *LabelsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LabelsGetCall) Do ¶
func (c *LabelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2Label, error)
Do executes the "drivelabels.labels.get" call. Exactly one of *GoogleAppsDriveLabelsV2Label or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2Label.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LabelsGetCall) Fields ¶
func (c *LabelsGetCall) Fields(s ...googleapi.Field) *LabelsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LabelsGetCall) Header ¶
func (c *LabelsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*LabelsGetCall) IfNoneMatch ¶
func (c *LabelsGetCall) IfNoneMatch(entityTag string) *LabelsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*LabelsGetCall) LanguageCode ¶
func (c *LabelsGetCall) LanguageCode(languageCode string) *LabelsGetCall
LanguageCode sets the optional parameter "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.
func (*LabelsGetCall) UseAdminAccess ¶
func (c *LabelsGetCall) UseAdminAccess(useAdminAccess bool) *LabelsGetCall
UseAdminAccess sets the optional parameter "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.
func (*LabelsGetCall) View ¶
func (c *LabelsGetCall) View(view string) *LabelsGetCall
View sets the optional parameter "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.
type LabelsListCall ¶
type LabelsListCall struct {
// contains filtered or unexported fields
}
func (*LabelsListCall) Context ¶
func (c *LabelsListCall) Context(ctx context.Context) *LabelsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LabelsListCall) Do ¶
func (c *LabelsListCall) Do(opts ...googleapi.CallOption) (*GoogleAppsDriveLabelsV2ListLabelsResponse, error)
Do executes the "drivelabels.labels.list" call. Exactly one of *GoogleAppsDriveLabelsV2ListLabelsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GoogleAppsDriveLabelsV2ListLabelsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LabelsListCall) Fields ¶
func (c *LabelsListCall) Fields(s ...googleapi.Field) *LabelsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LabelsListCall) Header ¶
func (c *LabelsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*LabelsListCall) IfNoneMatch ¶
func (c *LabelsListCall) IfNoneMatch(entityTag string) *LabelsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*LabelsListCall) LanguageCode ¶
func (c *LabelsListCall) LanguageCode(languageCode string) *LabelsListCall
LanguageCode sets the optional parameter "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.
func (*LabelsListCall) MinimumRole ¶
func (c *LabelsListCall) MinimumRole(minimumRole string) *LabelsListCall
MinimumRole sets the optional parameter "minimumRole": Specifies the level of access the user must have on the returned Labels. The minimum role a user must 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 is allowed to pin this label in shared
drives they manage and add new appliers to the label.
"EDITOR" - Editors may make any updates including deleting the
Label which will also delete associated Drive item metadata. Implies `APPLIER`.
func (*LabelsListCall) PageSize ¶
func (c *LabelsListCall) PageSize(pageSize int64) *LabelsListCall
PageSize sets the optional parameter "pageSize": Maximum number of Labels to return per page. Default: 50. Max: 200.
func (*LabelsListCall) PageToken ¶
func (c *LabelsListCall) PageToken(pageToken string) *LabelsListCall
PageToken sets the optional parameter "pageToken": The token of the page to return.
func (*LabelsListCall) Pages ¶
func (c *LabelsListCall) Pages(ctx context.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(publishedOnly bool) *LabelsListCall
PublishedOnly sets the optional parameter "publishedOnly": Whether to include only published labels in the results. * When `true`, only the current published label revisions will be returned. Disabled labels will be included. Returned Label resource names will reference the published revision (`labels/{id}/{revision_id}`). * When `false`, the current label revisions will be returned, which may not by published. Returned Label resource names will not reference a specific revision (`labels/{id}`).
func (*LabelsListCall) UseAdminAccess ¶
func (c *LabelsListCall) UseAdminAccess(useAdminAccess bool) *LabelsListCall
UseAdminAccess sets the optional parameter "useAdminAccess": Set to `true` in order to use the user's admin credentials. This will return all Labels within the customer.
func (*LabelsListCall) View ¶
func (c *LabelsListCall) View(view string) *LabelsListCall
View sets the optional parameter "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.
type LabelsService ¶
type LabelsService struct {
// contains filtered or unexported fields
}
func NewLabelsService ¶
func NewLabelsService(s *Service) *LabelsService
func (*LabelsService) Get ¶
func (r *LabelsService) Get(name string) *LabelsGetCall
Get: Get a Label by its resource name. Resource name may be any of: * `labels/{id}` - See to `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 to labels/{id}@latest) * `labels/{id}@latest` * `labels/{id}@published` * `labels/{id}@{revision_id}`.
func (*LabelsService) List ¶
func (r *LabelsService) List() *LabelsListCall
List: ---------------------------------------------------------------------- ---- ## Label APIs --------------------------------------------------------------- List Labels.
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Labels *LabelsService // contains filtered or unexported fields }
func New
deprecated
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.
func NewService ¶
NewService creates a new Service.