Documentation ¶
Overview ¶
Package vault provides access to the G Suite Vault API.
See https://developers.google.com/vault
Usage example:
import "google.golang.org/api/vault/v1" ... vaultService, err := vault.New(oauthHttpClient)
Index ¶
- Constants
- type AddMatterPermissionsRequest
- type CloseMatterRequest
- type CloseMatterResponse
- type CorpusQuery
- type Empty
- type HeldAccount
- type HeldDriveQuery
- type HeldGroupsQuery
- type HeldHangoutsChatQuery
- type HeldMailQuery
- type HeldOrgUnit
- type Hold
- type ListHeldAccountsResponse
- type ListHoldsResponse
- type ListMattersResponse
- type Matter
- type MatterPermission
- type MattersAddPermissionsCall
- func (c *MattersAddPermissionsCall) Context(ctx context.Context) *MattersAddPermissionsCall
- func (c *MattersAddPermissionsCall) Do(opts ...googleapi.CallOption) (*MatterPermission, error)
- func (c *MattersAddPermissionsCall) Fields(s ...googleapi.Field) *MattersAddPermissionsCall
- func (c *MattersAddPermissionsCall) Header() http.Header
- type MattersCloseCall
- type MattersCreateCall
- type MattersDeleteCall
- type MattersGetCall
- func (c *MattersGetCall) Context(ctx context.Context) *MattersGetCall
- func (c *MattersGetCall) Do(opts ...googleapi.CallOption) (*Matter, error)
- func (c *MattersGetCall) Fields(s ...googleapi.Field) *MattersGetCall
- func (c *MattersGetCall) Header() http.Header
- func (c *MattersGetCall) IfNoneMatch(entityTag string) *MattersGetCall
- func (c *MattersGetCall) View(view string) *MattersGetCall
- type MattersHoldsAccountsCreateCall
- func (c *MattersHoldsAccountsCreateCall) Context(ctx context.Context) *MattersHoldsAccountsCreateCall
- func (c *MattersHoldsAccountsCreateCall) Do(opts ...googleapi.CallOption) (*HeldAccount, error)
- func (c *MattersHoldsAccountsCreateCall) Fields(s ...googleapi.Field) *MattersHoldsAccountsCreateCall
- func (c *MattersHoldsAccountsCreateCall) Header() http.Header
- type MattersHoldsAccountsDeleteCall
- func (c *MattersHoldsAccountsDeleteCall) Context(ctx context.Context) *MattersHoldsAccountsDeleteCall
- func (c *MattersHoldsAccountsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *MattersHoldsAccountsDeleteCall) Fields(s ...googleapi.Field) *MattersHoldsAccountsDeleteCall
- func (c *MattersHoldsAccountsDeleteCall) Header() http.Header
- type MattersHoldsAccountsListCall
- func (c *MattersHoldsAccountsListCall) Context(ctx context.Context) *MattersHoldsAccountsListCall
- func (c *MattersHoldsAccountsListCall) Do(opts ...googleapi.CallOption) (*ListHeldAccountsResponse, error)
- func (c *MattersHoldsAccountsListCall) Fields(s ...googleapi.Field) *MattersHoldsAccountsListCall
- func (c *MattersHoldsAccountsListCall) Header() http.Header
- func (c *MattersHoldsAccountsListCall) IfNoneMatch(entityTag string) *MattersHoldsAccountsListCall
- type MattersHoldsAccountsService
- func (r *MattersHoldsAccountsService) Create(matterId string, holdId string, heldaccount *HeldAccount) *MattersHoldsAccountsCreateCall
- func (r *MattersHoldsAccountsService) Delete(matterId string, holdId string, accountId string) *MattersHoldsAccountsDeleteCall
- func (r *MattersHoldsAccountsService) List(matterId string, holdId string) *MattersHoldsAccountsListCall
- type MattersHoldsCreateCall
- func (c *MattersHoldsCreateCall) Context(ctx context.Context) *MattersHoldsCreateCall
- func (c *MattersHoldsCreateCall) Do(opts ...googleapi.CallOption) (*Hold, error)
- func (c *MattersHoldsCreateCall) Fields(s ...googleapi.Field) *MattersHoldsCreateCall
- func (c *MattersHoldsCreateCall) Header() http.Header
- type MattersHoldsDeleteCall
- func (c *MattersHoldsDeleteCall) Context(ctx context.Context) *MattersHoldsDeleteCall
- func (c *MattersHoldsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *MattersHoldsDeleteCall) Fields(s ...googleapi.Field) *MattersHoldsDeleteCall
- func (c *MattersHoldsDeleteCall) Header() http.Header
- type MattersHoldsGetCall
- func (c *MattersHoldsGetCall) Context(ctx context.Context) *MattersHoldsGetCall
- func (c *MattersHoldsGetCall) Do(opts ...googleapi.CallOption) (*Hold, error)
- func (c *MattersHoldsGetCall) Fields(s ...googleapi.Field) *MattersHoldsGetCall
- func (c *MattersHoldsGetCall) Header() http.Header
- func (c *MattersHoldsGetCall) IfNoneMatch(entityTag string) *MattersHoldsGetCall
- func (c *MattersHoldsGetCall) View(view string) *MattersHoldsGetCall
- type MattersHoldsListCall
- func (c *MattersHoldsListCall) Context(ctx context.Context) *MattersHoldsListCall
- func (c *MattersHoldsListCall) Do(opts ...googleapi.CallOption) (*ListHoldsResponse, error)
- func (c *MattersHoldsListCall) Fields(s ...googleapi.Field) *MattersHoldsListCall
- func (c *MattersHoldsListCall) Header() http.Header
- func (c *MattersHoldsListCall) IfNoneMatch(entityTag string) *MattersHoldsListCall
- func (c *MattersHoldsListCall) PageSize(pageSize int64) *MattersHoldsListCall
- func (c *MattersHoldsListCall) PageToken(pageToken string) *MattersHoldsListCall
- func (c *MattersHoldsListCall) Pages(ctx context.Context, f func(*ListHoldsResponse) error) error
- func (c *MattersHoldsListCall) View(view string) *MattersHoldsListCall
- type MattersHoldsService
- func (r *MattersHoldsService) Create(matterId string, hold *Hold) *MattersHoldsCreateCall
- func (r *MattersHoldsService) Delete(matterId string, holdId string) *MattersHoldsDeleteCall
- func (r *MattersHoldsService) Get(matterId string, holdId string) *MattersHoldsGetCall
- func (r *MattersHoldsService) List(matterId string) *MattersHoldsListCall
- func (r *MattersHoldsService) Update(matterId string, holdId string, hold *Hold) *MattersHoldsUpdateCall
- type MattersHoldsUpdateCall
- func (c *MattersHoldsUpdateCall) Context(ctx context.Context) *MattersHoldsUpdateCall
- func (c *MattersHoldsUpdateCall) Do(opts ...googleapi.CallOption) (*Hold, error)
- func (c *MattersHoldsUpdateCall) Fields(s ...googleapi.Field) *MattersHoldsUpdateCall
- func (c *MattersHoldsUpdateCall) Header() http.Header
- type MattersListCall
- func (c *MattersListCall) Context(ctx context.Context) *MattersListCall
- func (c *MattersListCall) Do(opts ...googleapi.CallOption) (*ListMattersResponse, error)
- func (c *MattersListCall) Fields(s ...googleapi.Field) *MattersListCall
- func (c *MattersListCall) Header() http.Header
- func (c *MattersListCall) IfNoneMatch(entityTag string) *MattersListCall
- func (c *MattersListCall) PageSize(pageSize int64) *MattersListCall
- func (c *MattersListCall) PageToken(pageToken string) *MattersListCall
- func (c *MattersListCall) Pages(ctx context.Context, f func(*ListMattersResponse) error) error
- func (c *MattersListCall) State(state string) *MattersListCall
- func (c *MattersListCall) View(view string) *MattersListCall
- type MattersRemovePermissionsCall
- func (c *MattersRemovePermissionsCall) Context(ctx context.Context) *MattersRemovePermissionsCall
- func (c *MattersRemovePermissionsCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *MattersRemovePermissionsCall) Fields(s ...googleapi.Field) *MattersRemovePermissionsCall
- func (c *MattersRemovePermissionsCall) Header() http.Header
- type MattersReopenCall
- type MattersService
- func (r *MattersService) AddPermissions(matterId string, addmatterpermissionsrequest *AddMatterPermissionsRequest) *MattersAddPermissionsCall
- func (r *MattersService) Close(matterId string, closematterrequest *CloseMatterRequest) *MattersCloseCall
- func (r *MattersService) Create(matter *Matter) *MattersCreateCall
- func (r *MattersService) Delete(matterId string) *MattersDeleteCall
- func (r *MattersService) Get(matterId string) *MattersGetCall
- func (r *MattersService) List() *MattersListCall
- func (r *MattersService) RemovePermissions(matterId string, ...) *MattersRemovePermissionsCall
- func (r *MattersService) Reopen(matterId string, reopenmatterrequest *ReopenMatterRequest) *MattersReopenCall
- func (r *MattersService) Undelete(matterId string, undeletematterrequest *UndeleteMatterRequest) *MattersUndeleteCall
- func (r *MattersService) Update(matterId string, matter *Matter) *MattersUpdateCall
- type MattersUndeleteCall
- type MattersUpdateCall
- type RemoveMatterPermissionsRequest
- type ReopenMatterRequest
- type ReopenMatterResponse
- type Service
- type UndeleteMatterRequest
Constants ¶
const ( // Manage your eDiscovery data EdiscoveryScope = "https://www.googleapis.com/auth/ediscovery" // View your eDiscovery data EdiscoveryReadonlyScope = "https://www.googleapis.com/auth/ediscovery.readonly" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddMatterPermissionsRequest ¶
type AddMatterPermissionsRequest struct { // CcMe: Only relevant if send_emails is true. // True to CC requestor in the email message. // False to not CC requestor. CcMe bool `json:"ccMe,omitempty"` // MatterPermission: The MatterPermission to add. MatterPermission *MatterPermission `json:"matterPermission,omitempty"` // SendEmails: True to send notification email to the added // account. // False to not send notification email. SendEmails bool `json:"sendEmails,omitempty"` // ForceSendFields is a list of field names (e.g. "CcMe") to // unconditionally include in API requests. By default, fields with // empty 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. "CcMe") 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:"-"` }
AddMatterPermissionsRequest: Add an account with the permission specified. The role cannot be owner. If an account already has a role in the matter, it will be overwritten.
func (*AddMatterPermissionsRequest) MarshalJSON ¶
func (s *AddMatterPermissionsRequest) MarshalJSON() ([]byte, error)
type CloseMatterRequest ¶
type CloseMatterRequest struct { }
CloseMatterRequest: Close a matter by ID.
type CloseMatterResponse ¶
type CloseMatterResponse struct { // Matter: The updated matter, with state CLOSED. Matter *Matter `json:"matter,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Matter") to // unconditionally include in API requests. By default, fields with // empty 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. "Matter") 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:"-"` }
CloseMatterResponse: Response to a CloseMatterRequest.
func (*CloseMatterResponse) MarshalJSON ¶
func (s *CloseMatterResponse) MarshalJSON() ([]byte, error)
type CorpusQuery ¶
type CorpusQuery struct { // DriveQuery: Details pertaining to Drive holds. If set, corpus must be // Drive. DriveQuery *HeldDriveQuery `json:"driveQuery,omitempty"` // GroupsQuery: Details pertaining to Groups holds. If set, corpus must // be Groups. GroupsQuery *HeldGroupsQuery `json:"groupsQuery,omitempty"` // HangoutsChatQuery: Details pertaining to Hangouts Chat holds. If set, // corpus must be // Hangouts Chat. HangoutsChatQuery *HeldHangoutsChatQuery `json:"hangoutsChatQuery,omitempty"` // MailQuery: Details pertaining to mail holds. If set, corpus must be // mail. MailQuery *HeldMailQuery `json:"mailQuery,omitempty"` // ForceSendFields is a list of field names (e.g. "DriveQuery") to // unconditionally include in API requests. By default, fields with // empty 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. "DriveQuery") 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:"-"` }
CorpusQuery: Corpus specific queries.
func (*CorpusQuery) MarshalJSON ¶
func (s *CorpusQuery) MarshalJSON() ([]byte, error)
type Empty ¶
type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:
service Foo { rpc Bar(google.protobuf.Empty) returns
(google.protobuf.Empty);
}
The JSON representation for `Empty` is empty JSON object `{}`.
type HeldAccount ¶
type HeldAccount struct { // AccountId: The account's ID as provided by the // <a href="https://developers.google.com/admin-sdk/">Admin SDK</a>. AccountId string `json:"accountId,omitempty"` // HoldTime: When the account was put on hold. HoldTime string `json:"holdTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AccountId") to // unconditionally include in API requests. By default, fields with // empty 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. "AccountId") 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:"-"` }
HeldAccount: An account being held in a particular hold. This structure is immutable. This can be either a single user or a google group, depending on the corpus.
func (*HeldAccount) MarshalJSON ¶
func (s *HeldAccount) MarshalJSON() ([]byte, error)
type HeldDriveQuery ¶
type HeldDriveQuery struct { // IncludeTeamDriveFiles: If true, include files in Team Drives in the // hold. IncludeTeamDriveFiles bool `json:"includeTeamDriveFiles,omitempty"` // ForceSendFields is a list of field names (e.g. // "IncludeTeamDriveFiles") to unconditionally include in API requests. // By default, fields with empty 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. "IncludeTeamDriveFiles") 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:"-"` }
HeldDriveQuery: Query options for Drive holds.
func (*HeldDriveQuery) MarshalJSON ¶
func (s *HeldDriveQuery) MarshalJSON() ([]byte, error)
type HeldGroupsQuery ¶
type HeldGroupsQuery struct { // EndTime: The end time range for the search query. These timestamps // are in GMT and // rounded down to the start of the given date. EndTime string `json:"endTime,omitempty"` // StartTime: The start time range for the search query. These // timestamps are in GMT and // rounded down to the start of the given date. StartTime string `json:"startTime,omitempty"` // Terms: The search terms for the hold. Terms string `json:"terms,omitempty"` // ForceSendFields is a list of field names (e.g. "EndTime") to // unconditionally include in API requests. By default, fields with // empty 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. "EndTime") 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:"-"` }
HeldGroupsQuery: Query options for group holds.
func (*HeldGroupsQuery) MarshalJSON ¶
func (s *HeldGroupsQuery) MarshalJSON() ([]byte, error)
type HeldHangoutsChatQuery ¶
type HeldHangoutsChatQuery struct { // IncludeRooms: If true, include rooms the user has participated in. IncludeRooms bool `json:"includeRooms,omitempty"` // ForceSendFields is a list of field names (e.g. "IncludeRooms") to // unconditionally include in API requests. By default, fields with // empty 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. "IncludeRooms") 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:"-"` }
HeldHangoutsChatQuery: Query options for hangouts chat holds.
func (*HeldHangoutsChatQuery) MarshalJSON ¶
func (s *HeldHangoutsChatQuery) MarshalJSON() ([]byte, error)
type HeldMailQuery ¶
type HeldMailQuery struct { // EndTime: The end time range for the search query. These timestamps // are in GMT and // rounded down to the start of the given date. EndTime string `json:"endTime,omitempty"` // StartTime: The start time range for the search query. These // timestamps are in GMT and // rounded down to the start of the given date. StartTime string `json:"startTime,omitempty"` // Terms: The search terms for the hold. Terms string `json:"terms,omitempty"` // ForceSendFields is a list of field names (e.g. "EndTime") to // unconditionally include in API requests. By default, fields with // empty 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. "EndTime") 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:"-"` }
HeldMailQuery: Query options for mail holds.
func (*HeldMailQuery) MarshalJSON ¶
func (s *HeldMailQuery) MarshalJSON() ([]byte, error)
type HeldOrgUnit ¶
type HeldOrgUnit struct { // HoldTime: When the org unit was put on hold. This property is // immutable. HoldTime string `json:"holdTime,omitempty"` // OrgUnitId: The org unit's immutable ID as provided by the Admin SDK. OrgUnitId string `json:"orgUnitId,omitempty"` // ForceSendFields is a list of field names (e.g. "HoldTime") to // unconditionally include in API requests. By default, fields with // empty 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. "HoldTime") 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:"-"` }
HeldOrgUnit: A organizational unit being held in a particular hold. This structure is immutable.
func (*HeldOrgUnit) MarshalJSON ¶
func (s *HeldOrgUnit) MarshalJSON() ([]byte, error)
type Hold ¶
type Hold struct { // Accounts: If set, the hold applies to the enumerated accounts and // org_unit must be // empty. Accounts []*HeldAccount `json:"accounts,omitempty"` // Corpus: The corpus to be searched. // // Possible values: // "CORPUS_TYPE_UNSPECIFIED" - No corpus specified. // "DRIVE" - Drive. // "MAIL" - Mail. // "GROUPS" - Groups. // "HANGOUTS_CHAT" - Hangouts Chat. Corpus string `json:"corpus,omitempty"` // HoldId: The unique immutable ID of the hold. Assigned during // creation. HoldId string `json:"holdId,omitempty"` // Name: The name of the hold. Name string `json:"name,omitempty"` // OrgUnit: If set, the hold applies to all members of the // organizational unit and // accounts must be empty. This property is mutable. For groups // holds, // set the accounts field. OrgUnit *HeldOrgUnit `json:"orgUnit,omitempty"` // Query: The corpus-specific query. If set, the corpusQuery must match // corpus // type. Query *CorpusQuery `json:"query,omitempty"` // UpdateTime: The last time this hold was modified. UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Accounts") to // unconditionally include in API requests. By default, fields with // empty 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. "Accounts") 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:"-"` }
Hold: Represents a hold within Vault. A hold restricts purging of artifacts based on the combination of the query and accounts restrictions. A hold can be configured to either apply to an explicitly configured set of accounts, or can be applied to all members of an organizational unit.
func (*Hold) MarshalJSON ¶
type ListHeldAccountsResponse ¶
type ListHeldAccountsResponse struct { // Accounts: The held accounts on a hold. Accounts []*HeldAccount `json:"accounts,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Accounts") to // unconditionally include in API requests. By default, fields with // empty 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. "Accounts") 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:"-"` }
ListHeldAccountsResponse: Returns a list of held accounts for a hold.
func (*ListHeldAccountsResponse) MarshalJSON ¶
func (s *ListHeldAccountsResponse) MarshalJSON() ([]byte, error)
type ListHoldsResponse ¶
type ListHoldsResponse struct { // Holds: The list of holds. Holds []*Hold `json:"holds,omitempty"` // NextPageToken: Page token to retrieve the next page of results in the // list. // If this is empty, then there are no more holds to list. 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. "Holds") to // unconditionally include in API requests. By default, fields with // empty 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. "Holds") 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:"-"` }
ListHoldsResponse: The holds for a matter.
func (*ListHoldsResponse) MarshalJSON ¶
func (s *ListHoldsResponse) MarshalJSON() ([]byte, error)
type ListMattersResponse ¶
type ListMattersResponse struct { // Matters: List of matters. Matters []*Matter `json:"matters,omitempty"` // NextPageToken: Page token to retrieve the next page of results in the // list. 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. "Matters") to // unconditionally include in API requests. By default, fields with // empty 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. "Matters") 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:"-"` }
ListMattersResponse: Provides the list of matters.
func (*ListMattersResponse) MarshalJSON ¶
func (s *ListMattersResponse) MarshalJSON() ([]byte, error)
type Matter ¶
type Matter struct { // Description: The description of the matter. Description string `json:"description,omitempty"` // MatterId: The matter ID which is generated by the server. // Should be blank when creating a new matter. MatterId string `json:"matterId,omitempty"` // MatterPermissions: List of users and access to the matter. Currently // there is no programmer // defined limit on the number of permissions a matter can have. MatterPermissions []*MatterPermission `json:"matterPermissions,omitempty"` // Name: The name of the matter. Name string `json:"name,omitempty"` // State: The state of the matter. // // Possible values: // "STATE_UNSPECIFIED" - The matter has no specified state. // "OPEN" - This matter is open. // "CLOSED" - This matter is closed. // "DELETED" - This matter is deleted. State string `json:"state,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty 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:"-"` }
Matter: Represents a matter.
func (*Matter) MarshalJSON ¶
type MatterPermission ¶
type MatterPermission struct { // AccountId: The account id, as provided by <a // href="https://developers.google.com/admin-sdk/">Admin SDK</a>. AccountId string `json:"accountId,omitempty"` // Role: The user's role in this matter. // // Possible values: // "ROLE_UNSPECIFIED" - No role assigned. // "COLLABORATOR" - A collaborator to the matter. // "OWNER" - The owner of the matter. Role string `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. "AccountId") to // unconditionally include in API requests. By default, fields with // empty 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. "AccountId") 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:"-"` }
MatterPermission: Currently each matter only has one owner, and all others are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist.
func (*MatterPermission) MarshalJSON ¶
func (s *MatterPermission) MarshalJSON() ([]byte, error)
type MattersAddPermissionsCall ¶
type MattersAddPermissionsCall struct {
// contains filtered or unexported fields
}
func (*MattersAddPermissionsCall) Context ¶
func (c *MattersAddPermissionsCall) Context(ctx context.Context) *MattersAddPermissionsCall
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 (*MattersAddPermissionsCall) Do ¶
func (c *MattersAddPermissionsCall) Do(opts ...googleapi.CallOption) (*MatterPermission, error)
Do executes the "vault.matters.addPermissions" call. Exactly one of *MatterPermission or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *MatterPermission.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 (*MattersAddPermissionsCall) Fields ¶
func (c *MattersAddPermissionsCall) Fields(s ...googleapi.Field) *MattersAddPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MattersAddPermissionsCall) Header ¶
func (c *MattersAddPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type MattersCloseCall ¶
type MattersCloseCall struct {
// contains filtered or unexported fields
}
func (*MattersCloseCall) Context ¶
func (c *MattersCloseCall) Context(ctx context.Context) *MattersCloseCall
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 (*MattersCloseCall) Do ¶
func (c *MattersCloseCall) Do(opts ...googleapi.CallOption) (*CloseMatterResponse, error)
Do executes the "vault.matters.close" call. Exactly one of *CloseMatterResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CloseMatterResponse.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 (*MattersCloseCall) Fields ¶
func (c *MattersCloseCall) Fields(s ...googleapi.Field) *MattersCloseCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MattersCloseCall) Header ¶
func (c *MattersCloseCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type MattersCreateCall ¶
type MattersCreateCall struct {
// contains filtered or unexported fields
}
func (*MattersCreateCall) Context ¶
func (c *MattersCreateCall) Context(ctx context.Context) *MattersCreateCall
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 (*MattersCreateCall) Do ¶
func (c *MattersCreateCall) Do(opts ...googleapi.CallOption) (*Matter, error)
Do executes the "vault.matters.create" call. Exactly one of *Matter or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Matter.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 (*MattersCreateCall) Fields ¶
func (c *MattersCreateCall) Fields(s ...googleapi.Field) *MattersCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MattersCreateCall) Header ¶
func (c *MattersCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type MattersDeleteCall ¶
type MattersDeleteCall struct {
// contains filtered or unexported fields
}
func (*MattersDeleteCall) Context ¶
func (c *MattersDeleteCall) Context(ctx context.Context) *MattersDeleteCall
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 (*MattersDeleteCall) Do ¶
func (c *MattersDeleteCall) Do(opts ...googleapi.CallOption) (*Matter, error)
Do executes the "vault.matters.delete" call. Exactly one of *Matter or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Matter.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 (*MattersDeleteCall) Fields ¶
func (c *MattersDeleteCall) Fields(s ...googleapi.Field) *MattersDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MattersDeleteCall) Header ¶
func (c *MattersDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type MattersGetCall ¶
type MattersGetCall struct {
// contains filtered or unexported fields
}
func (*MattersGetCall) Context ¶
func (c *MattersGetCall) Context(ctx context.Context) *MattersGetCall
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 (*MattersGetCall) Do ¶
func (c *MattersGetCall) Do(opts ...googleapi.CallOption) (*Matter, error)
Do executes the "vault.matters.get" call. Exactly one of *Matter or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Matter.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 (*MattersGetCall) Fields ¶
func (c *MattersGetCall) Fields(s ...googleapi.Field) *MattersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MattersGetCall) Header ¶
func (c *MattersGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*MattersGetCall) IfNoneMatch ¶
func (c *MattersGetCall) IfNoneMatch(entityTag string) *MattersGetCall
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 (*MattersGetCall) View ¶
func (c *MattersGetCall) View(view string) *MattersGetCall
View sets the optional parameter "view": Specifies which parts of the Matter to return in the response.
Possible values:
"VIEW_UNSPECIFIED" "BASIC" "FULL"
type MattersHoldsAccountsCreateCall ¶
type MattersHoldsAccountsCreateCall struct {
// contains filtered or unexported fields
}
func (*MattersHoldsAccountsCreateCall) Context ¶
func (c *MattersHoldsAccountsCreateCall) Context(ctx context.Context) *MattersHoldsAccountsCreateCall
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 (*MattersHoldsAccountsCreateCall) Do ¶
func (c *MattersHoldsAccountsCreateCall) Do(opts ...googleapi.CallOption) (*HeldAccount, error)
Do executes the "vault.matters.holds.accounts.create" call. Exactly one of *HeldAccount or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *HeldAccount.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 (*MattersHoldsAccountsCreateCall) Fields ¶
func (c *MattersHoldsAccountsCreateCall) Fields(s ...googleapi.Field) *MattersHoldsAccountsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MattersHoldsAccountsCreateCall) Header ¶
func (c *MattersHoldsAccountsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type MattersHoldsAccountsDeleteCall ¶
type MattersHoldsAccountsDeleteCall struct {
// contains filtered or unexported fields
}
func (*MattersHoldsAccountsDeleteCall) Context ¶
func (c *MattersHoldsAccountsDeleteCall) Context(ctx context.Context) *MattersHoldsAccountsDeleteCall
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 (*MattersHoldsAccountsDeleteCall) Do ¶
func (c *MattersHoldsAccountsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "vault.matters.holds.accounts.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*MattersHoldsAccountsDeleteCall) Fields ¶
func (c *MattersHoldsAccountsDeleteCall) Fields(s ...googleapi.Field) *MattersHoldsAccountsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MattersHoldsAccountsDeleteCall) Header ¶
func (c *MattersHoldsAccountsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type MattersHoldsAccountsListCall ¶
type MattersHoldsAccountsListCall struct {
// contains filtered or unexported fields
}
func (*MattersHoldsAccountsListCall) Context ¶
func (c *MattersHoldsAccountsListCall) Context(ctx context.Context) *MattersHoldsAccountsListCall
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 (*MattersHoldsAccountsListCall) Do ¶
func (c *MattersHoldsAccountsListCall) Do(opts ...googleapi.CallOption) (*ListHeldAccountsResponse, error)
Do executes the "vault.matters.holds.accounts.list" call. Exactly one of *ListHeldAccountsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListHeldAccountsResponse.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 (*MattersHoldsAccountsListCall) Fields ¶
func (c *MattersHoldsAccountsListCall) Fields(s ...googleapi.Field) *MattersHoldsAccountsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MattersHoldsAccountsListCall) Header ¶
func (c *MattersHoldsAccountsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*MattersHoldsAccountsListCall) IfNoneMatch ¶
func (c *MattersHoldsAccountsListCall) IfNoneMatch(entityTag string) *MattersHoldsAccountsListCall
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.
type MattersHoldsAccountsService ¶
type MattersHoldsAccountsService struct {
// contains filtered or unexported fields
}
func NewMattersHoldsAccountsService ¶
func NewMattersHoldsAccountsService(s *Service) *MattersHoldsAccountsService
func (*MattersHoldsAccountsService) Create ¶
func (r *MattersHoldsAccountsService) Create(matterId string, holdId string, heldaccount *HeldAccount) *MattersHoldsAccountsCreateCall
Create: Adds a HeldAccount to a hold. Accounts can only be added to a hold that has no held_org_unit set. Attempting to add an account to an OU-based hold will result in an error.
func (*MattersHoldsAccountsService) Delete ¶
func (r *MattersHoldsAccountsService) Delete(matterId string, holdId string, accountId string) *MattersHoldsAccountsDeleteCall
Delete: Removes a HeldAccount from a hold. If this request leaves the hold with no held accounts, the hold will not apply to any accounts.
func (*MattersHoldsAccountsService) List ¶
func (r *MattersHoldsAccountsService) List(matterId string, holdId string) *MattersHoldsAccountsListCall
List: Lists HeldAccounts for a hold. This will only list individually specified held accounts. If the hold is on an OU, then use <a href="https://developers.google.com/admin-sdk/">Admin SDK</a> to enumerate its members.
type MattersHoldsCreateCall ¶
type MattersHoldsCreateCall struct {
// contains filtered or unexported fields
}
func (*MattersHoldsCreateCall) Context ¶
func (c *MattersHoldsCreateCall) Context(ctx context.Context) *MattersHoldsCreateCall
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 (*MattersHoldsCreateCall) Do ¶
func (c *MattersHoldsCreateCall) Do(opts ...googleapi.CallOption) (*Hold, error)
Do executes the "vault.matters.holds.create" call. Exactly one of *Hold or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Hold.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 (*MattersHoldsCreateCall) Fields ¶
func (c *MattersHoldsCreateCall) Fields(s ...googleapi.Field) *MattersHoldsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MattersHoldsCreateCall) Header ¶
func (c *MattersHoldsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type MattersHoldsDeleteCall ¶
type MattersHoldsDeleteCall struct {
// contains filtered or unexported fields
}
func (*MattersHoldsDeleteCall) Context ¶
func (c *MattersHoldsDeleteCall) Context(ctx context.Context) *MattersHoldsDeleteCall
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 (*MattersHoldsDeleteCall) Do ¶
func (c *MattersHoldsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "vault.matters.holds.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*MattersHoldsDeleteCall) Fields ¶
func (c *MattersHoldsDeleteCall) Fields(s ...googleapi.Field) *MattersHoldsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MattersHoldsDeleteCall) Header ¶
func (c *MattersHoldsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type MattersHoldsGetCall ¶
type MattersHoldsGetCall struct {
// contains filtered or unexported fields
}
func (*MattersHoldsGetCall) Context ¶
func (c *MattersHoldsGetCall) Context(ctx context.Context) *MattersHoldsGetCall
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 (*MattersHoldsGetCall) Do ¶
func (c *MattersHoldsGetCall) Do(opts ...googleapi.CallOption) (*Hold, error)
Do executes the "vault.matters.holds.get" call. Exactly one of *Hold or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Hold.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 (*MattersHoldsGetCall) Fields ¶
func (c *MattersHoldsGetCall) Fields(s ...googleapi.Field) *MattersHoldsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MattersHoldsGetCall) Header ¶
func (c *MattersHoldsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*MattersHoldsGetCall) IfNoneMatch ¶
func (c *MattersHoldsGetCall) IfNoneMatch(entityTag string) *MattersHoldsGetCall
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 (*MattersHoldsGetCall) View ¶
func (c *MattersHoldsGetCall) View(view string) *MattersHoldsGetCall
View sets the optional parameter "view": Specifies which parts of the Hold to return.
Possible values:
"HOLD_VIEW_UNSPECIFIED" "BASIC_HOLD" "FULL_HOLD"
type MattersHoldsListCall ¶
type MattersHoldsListCall struct {
// contains filtered or unexported fields
}
func (*MattersHoldsListCall) Context ¶
func (c *MattersHoldsListCall) Context(ctx context.Context) *MattersHoldsListCall
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 (*MattersHoldsListCall) Do ¶
func (c *MattersHoldsListCall) Do(opts ...googleapi.CallOption) (*ListHoldsResponse, error)
Do executes the "vault.matters.holds.list" call. Exactly one of *ListHoldsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListHoldsResponse.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 (*MattersHoldsListCall) Fields ¶
func (c *MattersHoldsListCall) Fields(s ...googleapi.Field) *MattersHoldsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MattersHoldsListCall) Header ¶
func (c *MattersHoldsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*MattersHoldsListCall) IfNoneMatch ¶
func (c *MattersHoldsListCall) IfNoneMatch(entityTag string) *MattersHoldsListCall
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 (*MattersHoldsListCall) PageSize ¶
func (c *MattersHoldsListCall) PageSize(pageSize int64) *MattersHoldsListCall
PageSize sets the optional parameter "pageSize": The number of holds to return in the response, between 0 and 100 inclusive. Leaving this empty, or as 0, is the same as page_size = 100.
func (*MattersHoldsListCall) PageToken ¶
func (c *MattersHoldsListCall) PageToken(pageToken string) *MattersHoldsListCall
PageToken sets the optional parameter "pageToken": The pagination token as returned in the response. An empty token means start from the beginning.
func (*MattersHoldsListCall) Pages ¶
func (c *MattersHoldsListCall) Pages(ctx context.Context, f func(*ListHoldsResponse) 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 (*MattersHoldsListCall) View ¶
func (c *MattersHoldsListCall) View(view string) *MattersHoldsListCall
View sets the optional parameter "view": Specifies which parts of the Hold to return.
Possible values:
"HOLD_VIEW_UNSPECIFIED" "BASIC_HOLD" "FULL_HOLD"
type MattersHoldsService ¶
type MattersHoldsService struct { Accounts *MattersHoldsAccountsService // contains filtered or unexported fields }
func NewMattersHoldsService ¶
func NewMattersHoldsService(s *Service) *MattersHoldsService
func (*MattersHoldsService) Create ¶
func (r *MattersHoldsService) Create(matterId string, hold *Hold) *MattersHoldsCreateCall
Create: Creates a hold in the given matter.
func (*MattersHoldsService) Delete ¶
func (r *MattersHoldsService) Delete(matterId string, holdId string) *MattersHoldsDeleteCall
Delete: Removes a hold by ID. This will release any HeldAccounts on this Hold.
func (*MattersHoldsService) Get ¶
func (r *MattersHoldsService) Get(matterId string, holdId string) *MattersHoldsGetCall
Get: Gets a hold by ID.
func (*MattersHoldsService) List ¶
func (r *MattersHoldsService) List(matterId string) *MattersHoldsListCall
List: Lists holds within a matter. An empty page token in ListHoldsResponse denotes no more holds to list.
func (*MattersHoldsService) Update ¶
func (r *MattersHoldsService) Update(matterId string, holdId string, hold *Hold) *MattersHoldsUpdateCall
Update: Updates the OU and/or query parameters of a hold. You cannot add accounts to a hold that covers an OU, nor can you add OUs to a hold that covers individual accounts. Accounts listed in the hold will be ignored.
type MattersHoldsUpdateCall ¶
type MattersHoldsUpdateCall struct {
// contains filtered or unexported fields
}
func (*MattersHoldsUpdateCall) Context ¶
func (c *MattersHoldsUpdateCall) Context(ctx context.Context) *MattersHoldsUpdateCall
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 (*MattersHoldsUpdateCall) Do ¶
func (c *MattersHoldsUpdateCall) Do(opts ...googleapi.CallOption) (*Hold, error)
Do executes the "vault.matters.holds.update" call. Exactly one of *Hold or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Hold.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 (*MattersHoldsUpdateCall) Fields ¶
func (c *MattersHoldsUpdateCall) Fields(s ...googleapi.Field) *MattersHoldsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MattersHoldsUpdateCall) Header ¶
func (c *MattersHoldsUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type MattersListCall ¶
type MattersListCall struct {
// contains filtered or unexported fields
}
func (*MattersListCall) Context ¶
func (c *MattersListCall) Context(ctx context.Context) *MattersListCall
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 (*MattersListCall) Do ¶
func (c *MattersListCall) Do(opts ...googleapi.CallOption) (*ListMattersResponse, error)
Do executes the "vault.matters.list" call. Exactly one of *ListMattersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListMattersResponse.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 (*MattersListCall) Fields ¶
func (c *MattersListCall) Fields(s ...googleapi.Field) *MattersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MattersListCall) Header ¶
func (c *MattersListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*MattersListCall) IfNoneMatch ¶
func (c *MattersListCall) IfNoneMatch(entityTag string) *MattersListCall
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 (*MattersListCall) PageSize ¶
func (c *MattersListCall) PageSize(pageSize int64) *MattersListCall
PageSize sets the optional parameter "pageSize": The number of matters to return in the response. Default and maximum are 100.
func (*MattersListCall) PageToken ¶
func (c *MattersListCall) PageToken(pageToken string) *MattersListCall
PageToken sets the optional parameter "pageToken": The pagination token as returned in the response.
func (*MattersListCall) Pages ¶
func (c *MattersListCall) Pages(ctx context.Context, f func(*ListMattersResponse) 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 (*MattersListCall) State ¶
func (c *MattersListCall) State(state string) *MattersListCall
State sets the optional parameter "state": If set, list only matters with that specific state. The default is listing matters of all states.
Possible values:
"STATE_UNSPECIFIED" "OPEN" "CLOSED" "DELETED"
func (*MattersListCall) View ¶
func (c *MattersListCall) View(view string) *MattersListCall
View sets the optional parameter "view": Specifies which parts of the matter to return in response.
Possible values:
"VIEW_UNSPECIFIED" "BASIC" "FULL"
type MattersRemovePermissionsCall ¶
type MattersRemovePermissionsCall struct {
// contains filtered or unexported fields
}
func (*MattersRemovePermissionsCall) Context ¶
func (c *MattersRemovePermissionsCall) Context(ctx context.Context) *MattersRemovePermissionsCall
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 (*MattersRemovePermissionsCall) Do ¶
func (c *MattersRemovePermissionsCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "vault.matters.removePermissions" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*MattersRemovePermissionsCall) Fields ¶
func (c *MattersRemovePermissionsCall) Fields(s ...googleapi.Field) *MattersRemovePermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MattersRemovePermissionsCall) Header ¶
func (c *MattersRemovePermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type MattersReopenCall ¶
type MattersReopenCall struct {
// contains filtered or unexported fields
}
func (*MattersReopenCall) Context ¶
func (c *MattersReopenCall) Context(ctx context.Context) *MattersReopenCall
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 (*MattersReopenCall) Do ¶
func (c *MattersReopenCall) Do(opts ...googleapi.CallOption) (*ReopenMatterResponse, error)
Do executes the "vault.matters.reopen" call. Exactly one of *ReopenMatterResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ReopenMatterResponse.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 (*MattersReopenCall) Fields ¶
func (c *MattersReopenCall) Fields(s ...googleapi.Field) *MattersReopenCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MattersReopenCall) Header ¶
func (c *MattersReopenCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type MattersService ¶
type MattersService struct { Holds *MattersHoldsService // contains filtered or unexported fields }
func NewMattersService ¶
func NewMattersService(s *Service) *MattersService
func (*MattersService) AddPermissions ¶
func (r *MattersService) AddPermissions(matterId string, addmatterpermissionsrequest *AddMatterPermissionsRequest) *MattersAddPermissionsCall
AddPermissions: Adds an account as a matter collaborator.
func (*MattersService) Close ¶
func (r *MattersService) Close(matterId string, closematterrequest *CloseMatterRequest) *MattersCloseCall
Close: Closes the specified matter. Returns matter with updated state.
func (*MattersService) Create ¶
func (r *MattersService) Create(matter *Matter) *MattersCreateCall
Create: Creates a new matter with the given name and description. The initial state is open, and the owner is the method caller. Returns the created matter with default view.
func (*MattersService) Delete ¶
func (r *MattersService) Delete(matterId string) *MattersDeleteCall
Delete: Deletes the specified matter. Returns matter with updated state.
func (*MattersService) Get ¶
func (r *MattersService) Get(matterId string) *MattersGetCall
Get: Gets the specified matter.
func (*MattersService) List ¶
func (r *MattersService) List() *MattersListCall
List: Lists matters the user has access to.
func (*MattersService) RemovePermissions ¶
func (r *MattersService) RemovePermissions(matterId string, removematterpermissionsrequest *RemoveMatterPermissionsRequest) *MattersRemovePermissionsCall
RemovePermissions: Removes an account as a matter collaborator.
func (*MattersService) Reopen ¶
func (r *MattersService) Reopen(matterId string, reopenmatterrequest *ReopenMatterRequest) *MattersReopenCall
Reopen: Reopens the specified matter. Returns matter with updated state.
func (*MattersService) Undelete ¶
func (r *MattersService) Undelete(matterId string, undeletematterrequest *UndeleteMatterRequest) *MattersUndeleteCall
Undelete: Undeletes the specified matter. Returns matter with updated state.
func (*MattersService) Update ¶
func (r *MattersService) Update(matterId string, matter *Matter) *MattersUpdateCall
Update: Updates the specified matter. This updates only the name and description of the matter, identified by matter id. Changes to any other fields are ignored. Returns the default view of the matter.
type MattersUndeleteCall ¶
type MattersUndeleteCall struct {
// contains filtered or unexported fields
}
func (*MattersUndeleteCall) Context ¶
func (c *MattersUndeleteCall) Context(ctx context.Context) *MattersUndeleteCall
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 (*MattersUndeleteCall) Do ¶
func (c *MattersUndeleteCall) Do(opts ...googleapi.CallOption) (*Matter, error)
Do executes the "vault.matters.undelete" call. Exactly one of *Matter or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Matter.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 (*MattersUndeleteCall) Fields ¶
func (c *MattersUndeleteCall) Fields(s ...googleapi.Field) *MattersUndeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MattersUndeleteCall) Header ¶
func (c *MattersUndeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type MattersUpdateCall ¶
type MattersUpdateCall struct {
// contains filtered or unexported fields
}
func (*MattersUpdateCall) Context ¶
func (c *MattersUpdateCall) Context(ctx context.Context) *MattersUpdateCall
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 (*MattersUpdateCall) Do ¶
func (c *MattersUpdateCall) Do(opts ...googleapi.CallOption) (*Matter, error)
Do executes the "vault.matters.update" call. Exactly one of *Matter or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Matter.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 (*MattersUpdateCall) Fields ¶
func (c *MattersUpdateCall) Fields(s ...googleapi.Field) *MattersUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MattersUpdateCall) Header ¶
func (c *MattersUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type RemoveMatterPermissionsRequest ¶
type RemoveMatterPermissionsRequest struct { // AccountId: The account ID. AccountId string `json:"accountId,omitempty"` // ForceSendFields is a list of field names (e.g. "AccountId") to // unconditionally include in API requests. By default, fields with // empty 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. "AccountId") 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:"-"` }
RemoveMatterPermissionsRequest: Remove an account as a matter collaborator.
func (*RemoveMatterPermissionsRequest) MarshalJSON ¶
func (s *RemoveMatterPermissionsRequest) MarshalJSON() ([]byte, error)
type ReopenMatterRequest ¶
type ReopenMatterRequest struct { }
ReopenMatterRequest: Reopen a matter by ID.
type ReopenMatterResponse ¶
type ReopenMatterResponse struct { // Matter: The updated matter, with state OPEN. Matter *Matter `json:"matter,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Matter") to // unconditionally include in API requests. By default, fields with // empty 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. "Matter") 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:"-"` }
ReopenMatterResponse: Response to a ReopenMatterRequest.
func (*ReopenMatterResponse) MarshalJSON ¶
func (s *ReopenMatterResponse) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Matters *MattersService // contains filtered or unexported fields }
type UndeleteMatterRequest ¶
type UndeleteMatterRequest struct { }
UndeleteMatterRequest: Undelete a matter by ID.