securesourcemanager

package
v0.247.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2025 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Overview

Package securesourcemanager provides access to the Secure Source Manager API.

For product documentation, see: https://cloud.google.com/secure-source-manager

Library status

These client libraries are officially supported by Google. However, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.

When possible, we recommend using our newer [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) that are still actively being worked and iterated on.

Creating a client

Usage example:

import "google.golang.org/api/securesourcemanager/v1"
...
ctx := context.Background()
securesourcemanagerService, err := securesourcemanager.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 google.golang.org/api/option.WithAPIKey:

securesourcemanagerService, err := securesourcemanager.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow, use google.golang.org/api/option.WithTokenSource:

config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
securesourcemanagerService, err := securesourcemanager.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

See google.golang.org/api/option.ClientOption for details on options.

Index

Constants

View Source
const (
	// See, edit, configure, and delete your Google Cloud data and see the email
	// address for your Google Account.
	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditConfig

type AuditConfig struct {
	// AuditLogConfigs: The configuration for logging of each type of permission.
	AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
	// Service: Specifies a service that will be enabled for audit logging. For
	// example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices`
	// is a special value that covers all services.
	Service string `json:"service,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AuditLogConfigs") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

AuditConfig: Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.

func (AuditConfig) MarshalJSON

func (s AuditConfig) MarshalJSON() ([]byte, error)

type AuditLogConfig

type AuditLogConfig struct {
	// ExemptedMembers: Specifies the identities that do not cause logging for this
	// type of permission. Follows the same format of Binding.members.
	ExemptedMembers []string `json:"exemptedMembers,omitempty"`
	// LogType: The log type that this config enables.
	//
	// Possible values:
	//   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
	//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
	//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create
	//   "DATA_READ" - Data reads. Example: CloudSQL Users list
	LogType string `json:"logType,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ExemptedMembers") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

AuditLogConfig: Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.

func (AuditLogConfig) MarshalJSON

func (s AuditLogConfig) MarshalJSON() ([]byte, error)

type BatchCreatePullRequestCommentsRequest

type BatchCreatePullRequestCommentsRequest struct {
	// Requests: Required. The request message specifying the resources to create.
	// There should be exactly one CreatePullRequestCommentRequest with
	// CommentDetail being REVIEW in the list, and no more than 100
	// CreatePullRequestCommentRequests with CommentDetail being CODE in the list
	Requests []*CreatePullRequestCommentRequest `json:"requests,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Requests") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Requests") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

BatchCreatePullRequestCommentsRequest: The request to batch create pull request comments.

func (BatchCreatePullRequestCommentsRequest) MarshalJSON

func (s BatchCreatePullRequestCommentsRequest) MarshalJSON() ([]byte, error)

type Binding

type Binding struct {
	// Condition: The condition that is associated with this binding. If the
	// condition evaluates to `true`, then this binding applies to the current
	// request. If the condition evaluates to `false`, then this binding does not
	// apply to the current request. However, a different role binding might grant
	// the same role to one or more of the principals in this binding. To learn
	// which resources support conditions in their IAM policies, see the IAM
	// documentation
	// (https://cloud.google.com/iam/help/conditions/resource-policies).
	Condition *Expr `json:"condition,omitempty"`
	// Members: Specifies the principals requesting access for a Google Cloud
	// resource. `members` can have the following values: * `allUsers`: A special
	// identifier that represents anyone who is on the internet; with or without a
	// Google account. * `allAuthenticatedUsers`: A special identifier that
	// represents anyone who is authenticated with a Google account or a service
	// account. Does not include identities that come from external identity
	// providers (IdPs) through identity federation. * `user:{emailid}`: An email
	// address that represents a specific Google account. For example,
	// `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
	// represents a Google service account. For example,
	// `my-other-app@appspot.gserviceaccount.com`. *
	// `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
	// identifier for a Kubernetes service account
	// (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
	// For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
	// `group:{emailid}`: An email address that represents a Google group. For
	// example, `admins@example.com`. * `domain:{domain}`: The G Suite domain
	// (primary) that represents all the users of that domain. For example,
	// `google.com` or `example.com`. *
	// `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub
	// ject/{subject_attribute_value}`: A single identity in a workforce identity
	// pool. *
	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
	// group/{group_id}`: All workforce identities in a group. *
	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
	// attribute.{attribute_name}/{attribute_value}`: All workforce identities with
	// a specific attribute value. *
	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
	// *`: All identities in a workforce identity pool. *
	// `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo
	// rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single
	// identity in a workload identity pool. *
	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
	// /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool
	// group. *
	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
	// /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}
	// `: All identities in a workload identity pool with a certain attribute. *
	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
	// /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity
	// pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus
	// unique identifier) representing a user that has been recently deleted. For
	// example, `alice@example.com?uid=123456789012345678901`. If the user is
	// recovered, this value reverts to `user:{emailid}` and the recovered user
	// retains the role in the binding. *
	// `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
	// unique identifier) representing a service account that has been recently
	// deleted. For example,
	// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the
	// service account is undeleted, this value reverts to
	// `serviceAccount:{emailid}` and the undeleted service account retains the
	// role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email
	// address (plus unique identifier) representing a Google group that has been
	// recently deleted. For example,
	// `admins@example.com?uid=123456789012345678901`. If the group is recovered,
	// this value reverts to `group:{emailid}` and the recovered group retains the
	// role in the binding. *
	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool
	// _id}/subject/{subject_attribute_value}`: Deleted single identity in a
	// workforce identity pool. For example,
	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po
	// ol-id/subject/my-subject-attribute-value`.
	Members []string `json:"members,omitempty"`
	// Role: Role that is assigned to the list of `members`, or principals. For
	// example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview
	// of the IAM roles and permissions, see the IAM documentation
	// (https://cloud.google.com/iam/docs/roles-overview). For a list of the
	// available pre-defined roles, see here
	// (https://cloud.google.com/iam/docs/understanding-roles).
	Role string `json:"role,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Condition") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Condition") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Binding: Associates `members`, or principals, with a `role`.

func (Binding) MarshalJSON

func (s Binding) MarshalJSON() ([]byte, error)

type Branch

type Branch struct {
	// Ref: Required. Name of the branch.
	Ref string `json:"ref,omitempty"`
	// Sha: Output only. The commit at the tip of the branch.
	Sha string `json:"sha,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Ref") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Ref") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Branch: Branch represents a branch involved in a pull request.

func (Branch) MarshalJSON

func (s Branch) MarshalJSON() ([]byte, error)

type BranchRule

type BranchRule struct {
	// AllowStaleReviews: Optional. Determines if allow stale reviews or approvals
	// before merging to the branch.
	AllowStaleReviews bool `json:"allowStaleReviews,omitempty"`
	// Annotations: Optional. User annotations. These attributes can only be set
	// and used by the user. See https://google.aip.dev/128#annotations for more
	// details such as format and size limitations.
	Annotations map[string]string `json:"annotations,omitempty"`
	// CreateTime: Output only. Create timestamp.
	CreateTime string `json:"createTime,omitempty"`
	// Disabled: Optional. Determines if the branch rule is disabled or not.
	Disabled bool `json:"disabled,omitempty"`
	// Etag: Optional. This checksum is computed by the server based on the value
	// of other fields, and may be sent on update and delete requests to ensure the
	// client has an up-to-date value before proceeding.
	Etag string `json:"etag,omitempty"`
	// IncludePattern: Optional. The pattern of the branch that can match to this
	// BranchRule. Specified as regex. .* for all branches. Examples: main,
	// (main|release.*). Current MVP phase only support `.*` for wildcard.
	IncludePattern string `json:"includePattern,omitempty"`
	// MinimumApprovalsCount: Optional. The minimum number of approvals required
	// for the branch rule to be matched.
	MinimumApprovalsCount int64 `json:"minimumApprovalsCount,omitempty"`
	// MinimumReviewsCount: Optional. The minimum number of reviews required for
	// the branch rule to be matched.
	MinimumReviewsCount int64 `json:"minimumReviewsCount,omitempty"`
	// Name: Optional. A unique identifier for a BranchRule. The name should be of
	// the format:
	// `projects/{project}/locations/{location}/repositories/{repository}/branchRule
	// s/{branch_rule}`
	Name string `json:"name,omitempty"`
	// RequireCommentsResolved: Optional. Determines if require comments resolved
	// before merging to the branch.
	RequireCommentsResolved bool `json:"requireCommentsResolved,omitempty"`
	// RequireLinearHistory: Optional. Determines if require linear history before
	// merging to the branch.
	RequireLinearHistory bool `json:"requireLinearHistory,omitempty"`
	// RequirePullRequest: Optional. Determines if the branch rule requires a pull
	// request or not.
	RequirePullRequest bool `json:"requirePullRequest,omitempty"`
	// RequiredStatusChecks: Optional. List of required status checks before
	// merging to the branch.
	RequiredStatusChecks []*Check `json:"requiredStatusChecks,omitempty"`
	// Uid: Output only. Unique identifier of the repository.
	Uid string `json:"uid,omitempty"`
	// UpdateTime: Output only. Update timestamp.
	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. "AllowStaleReviews") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AllowStaleReviews") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

BranchRule: Metadata of a BranchRule. BranchRule is the protection rule to enforce pre-defined rules on designated branches within a repository.

func (BranchRule) MarshalJSON

func (s BranchRule) MarshalJSON() ([]byte, error)

type CancelOperationRequest

type CancelOperationRequest struct {
}

CancelOperationRequest: The request message for Operations.CancelOperation.

type Check

type Check struct {
	// Context: Required. The context of the check.
	Context string `json:"context,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Context") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Context") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Check: Check is a type for status check.

func (Check) MarshalJSON

func (s Check) MarshalJSON() ([]byte, error)

type CloseIssueRequest

type CloseIssueRequest struct {
	// Etag: Optional. The current etag of the issue. If the etag is provided and
	// does not match the current etag of the issue, closing will be blocked and an
	// ABORTED error will be returned.
	Etag string `json:"etag,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Etag") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

CloseIssueRequest: The request to close an issue.

func (CloseIssueRequest) MarshalJSON

func (s CloseIssueRequest) MarshalJSON() ([]byte, error)

type ClosePullRequestRequest

type ClosePullRequestRequest struct {
}

ClosePullRequestRequest: ClosePullRequestRequest is the request to close a pull request.

type Code

type Code struct {
	// Body: Required. The comment body.
	Body string `json:"body,omitempty"`
	// EffectiveCommitSha: Output only. The effective commit sha this code comment
	// is pointing to.
	EffectiveCommitSha string `json:"effectiveCommitSha,omitempty"`
	// EffectiveRootComment: Output only. The root comment of the conversation,
	// derived from the reply field.
	EffectiveRootComment string `json:"effectiveRootComment,omitempty"`
	// Position: Optional. The position of the comment.
	Position *Position `json:"position,omitempty"`
	// Reply: Optional. Input only. The PullRequestComment resource name that this
	// comment is replying to.
	Reply string `json:"reply,omitempty"`
	// Resolved: Output only. Boolean indicator if the comment is resolved.
	Resolved bool `json:"resolved,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Body") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Body") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Code: The comment on a code line.

func (Code) MarshalJSON

func (s Code) MarshalJSON() ([]byte, error)

type Comment

type Comment struct {
	// Body: Required. The comment body.
	Body string `json:"body,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Body") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Body") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Comment: The general pull request comment.

func (Comment) MarshalJSON

func (s Comment) MarshalJSON() ([]byte, error)

type CreatePullRequestCommentRequest

type CreatePullRequestCommentRequest struct {
	// Parent: Required. The pull request in which to create the pull request
	// comment. Format:
	// `projects/{project_number}/locations/{location_id}/repositories/{repository_i
	// d}/pullRequests/{pull_request_id}`
	Parent string `json:"parent,omitempty"`
	// PullRequestComment: Required. The pull request comment to create.
	PullRequestComment *PullRequestComment `json:"pullRequestComment,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Parent") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Parent") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

CreatePullRequestCommentRequest: The request to create a pull request comment.

func (CreatePullRequestCommentRequest) MarshalJSON

func (s CreatePullRequestCommentRequest) 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); }

type Expr

type Expr struct {
	// Description: Optional. Description of the expression. This is a longer text
	// which describes the expression, e.g. when hovered over it in a UI.
	Description string `json:"description,omitempty"`
	// Expression: Textual representation of an expression in Common Expression
	// Language syntax.
	Expression string `json:"expression,omitempty"`
	// Location: Optional. String indicating the location of the expression for
	// error reporting, e.g. a file name and a position in the file.
	Location string `json:"location,omitempty"`
	// Title: Optional. Title for the expression, i.e. a short string describing
	// its purpose. This can be used e.g. in UIs which allow to enter the
	// expression.
	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. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Description") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Expr: Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.

func (Expr) MarshalJSON

func (s Expr) MarshalJSON() ([]byte, error)

type FetchBlobResponse

type FetchBlobResponse struct {
	// Content: The content of the blob, encoded as base64.
	Content string `json:"content,omitempty"`
	// Sha: The SHA-1 hash of the blob.
	Sha string `json:"sha,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Content") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

FetchBlobResponse: Response message containing the content of a blob.

func (FetchBlobResponse) MarshalJSON

func (s FetchBlobResponse) MarshalJSON() ([]byte, error)

type FetchTreeResponse

type FetchTreeResponse struct {
	// NextPageToken: A token identifying a page of results the server should
	// return.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// TreeEntries: The list of TreeEntry objects.
	TreeEntries []*TreeEntry `json:"treeEntries,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

FetchTreeResponse: Response message containing a list of TreeEntry objects.

func (FetchTreeResponse) MarshalJSON

func (s FetchTreeResponse) MarshalJSON() ([]byte, error)

type FileDiff

type FileDiff struct {
	// Action: Output only. The action taken on the file (eg. added, modified,
	// deleted).
	//
	// Possible values:
	//   "ACTION_UNSPECIFIED" - Unspecified.
	//   "ADDED" - The file was added.
	//   "MODIFIED" - The file was modified.
	//   "DELETED" - The file was deleted.
	Action string `json:"action,omitempty"`
	// Name: Output only. The name of the file.
	Name string `json:"name,omitempty"`
	// Patch: Output only. The git patch containing the file changes.
	Patch string `json:"patch,omitempty"`
	// Sha: Output only. The commit pointing to the file changes.
	Sha string `json:"sha,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Action") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

FileDiff: Metadata of a FileDiff. FileDiff represents a single file diff in a pull request.

func (FileDiff) MarshalJSON

func (s FileDiff) MarshalJSON() ([]byte, error)

type Hook

type Hook struct {
	// CreateTime: Output only. Create timestamp.
	CreateTime string `json:"createTime,omitempty"`
	// Disabled: Optional. Determines if the hook disabled or not. Set to true to
	// stop sending traffic.
	Disabled bool `json:"disabled,omitempty"`
	// Events: Optional. The events that trigger hook on.
	//
	// Possible values:
	//   "UNSPECIFIED" - Unspecified.
	//   "PUSH" - Push events are triggered when pushing to the repository.
	//   "PULL_REQUEST" - Pull request events are triggered when a pull request is
	// opened, closed, reopened, or edited.
	Events []string `json:"events,omitempty"`
	// Name: Identifier. A unique identifier for a Hook. The name should be of the
	// format:
	// `projects/{project}/locations/{location_id}/repositories/{repository_id}/hook
	// s/{hook_id}`
	Name string `json:"name,omitempty"`
	// PushOption: Optional. The trigger option for push events.
	PushOption *PushOption `json:"pushOption,omitempty"`
	// SensitiveQueryString: Optional. The sensitive query string to be appended to
	// the target URI.
	SensitiveQueryString string `json:"sensitiveQueryString,omitempty"`
	// TargetUri: Required. The target URI to which the payloads will be delivered.
	TargetUri string `json:"targetUri,omitempty"`
	// Uid: Output only. Unique identifier of the hook.
	Uid string `json:"uid,omitempty"`
	// UpdateTime: Output only. Update timestamp.
	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. "CreateTime") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CreateTime") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Hook: Metadata of a Secure Source Manager Hook.

func (Hook) MarshalJSON

func (s Hook) MarshalJSON() ([]byte, error)

type HostConfig

type HostConfig struct {
	// Api: Output only. API hostname.
	Api string `json:"api,omitempty"`
	// GitHttp: Output only. Git HTTP hostname.
	GitHttp string `json:"gitHttp,omitempty"`
	// GitSsh: Output only. Git SSH hostname.
	GitSsh string `json:"gitSsh,omitempty"`
	// Html: Output only. HTML hostname.
	Html string `json:"html,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Api") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Api") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

HostConfig: HostConfig has different instance endpoints.

func (HostConfig) MarshalJSON

func (s HostConfig) MarshalJSON() ([]byte, error)

type InitialConfig

type InitialConfig struct {
	// DefaultBranch: Default branch name of the repository.
	DefaultBranch string `json:"defaultBranch,omitempty"`
	// Gitignores: List of gitignore template names user can choose from. Valid
	// values: actionscript, ada, agda, android, anjuta, ansible,
	// appcelerator-titanium, app-engine, archives, arch-linux-packages,
	// atmel-studio, autotools, backup, bazaar, bazel, bitrix, bricx-cc, c,
	// cake-php, calabash, cf-wheels, chef-cookbook, clojure, cloud9, c-make,
	// code-igniter, code-kit, code-sniffer, common-lisp, composer, concrete5, coq,
	// cordova, cpp, craft-cms, cuda, cvs, d, dart, dart-editor, delphi, diff, dm,
	// dreamweaver, dropbox, drupal, drupal-7, eagle, eclipse, eiffel-studio,
	// elisp, elixir, elm, emacs, ensime, epi-server, erlang, esp-idf, espresso,
	// exercism, expression-engine, ext-js, fancy, finale, flex-builder,
	// force-dot-com, fortran, fuel-php, gcov, git-book, gnome-shell-extension, go,
	// godot, gpg, gradle, grails, gwt, haskell, hugo, iar-ewarm, idris, igor-pro,
	// images, infor-cms, java, jboss, jboss-4, jboss-6, jdeveloper, jekyll,
	// jenkins-home, jenv, jet-brains, jigsaw, joomla, julia, jupyter-notebooks,
	// kate, kdevelop4, kentico, ki-cad, kohana, kotlin, lab-view, laravel,
	// lazarus, leiningen, lemon-stand, libre-office, lilypond, linux, lithium,
	// logtalk, lua, lyx, mac-os, magento, magento-1, magento-2, matlab, maven,
	// mercurial, mercury, metals, meta-programming-system, meteor,
	// microsoft-office, model-sim, momentics, mono-develop, nanoc, net-beans,
	// nikola, nim, ninja, node, notepad-pp, nwjs, objective--c, ocaml, octave,
	// opa, open-cart, openssl, oracle-forms, otto, packer, patch, perl, perl6,
	// phalcon, phoenix, pimcore, play-framework, plone, prestashop, processing,
	// psoc-creator, puppet, pure-script, putty, python, qooxdoo, qt, r, racket,
	// rails, raku, red, redcar, redis, rhodes-rhomobile, ros, ruby, rust, sam,
	// sass, sbt, scala, scheme, scons, scrivener, sdcc, seam-gen, sketch-up,
	// slick-edit, smalltalk, snap, splunk, stata, stella, sublime-text, sugar-crm,
	// svn, swift, symfony, symphony-cms, synopsys-vcs, tags, terraform, tex,
	// text-mate, textpattern, think-php, tortoise-git, turbo-gears-2, typo3,
	// umbraco, unity, unreal-engine, vagrant, vim, virtual-env, virtuoso,
	// visual-studio, visual-studio-code, vue, vvvv, waf, web-methods, windows,
	// word-press, xcode, xilinx, xilinx-ise, xojo, yeoman, yii, zend-framework,
	// zephir.
	Gitignores []string `json:"gitignores,omitempty"`
	// License: License template name user can choose from. Valid values:
	// license-0bsd, license-389-exception, aal, abstyles, adobe-2006, adobe-glyph,
	// adsl, afl-1-1, afl-1-2, afl-2-0, afl-2-1, afl-3-0, afmparse, agpl-1-0,
	// agpl-1-0-only, agpl-1-0-or-later, agpl-3-0-only, agpl-3-0-or-later, aladdin,
	// amdplpa, aml, ampas, antlr-pd, antlr-pd-fallback, apache-1-0, apache-1-1,
	// apache-2-0, apafml, apl-1-0, apsl-1-0, apsl-1-1, apsl-1-2, apsl-2-0,
	// artistic-1-0, artistic-1-0-cl8, artistic-1-0-perl, artistic-2-0,
	// autoconf-exception-2-0, autoconf-exception-3-0, bahyph, barr, beerware,
	// bison-exception-2-2, bittorrent-1-0, bittorrent-1-1, blessing,
	// blueoak-1-0-0, bootloader-exception, borceux, bsd-1-clause, bsd-2-clause,
	// bsd-2-clause-freebsd, bsd-2-clause-netbsd, bsd-2-clause-patent,
	// bsd-2-clause-views, bsd-3-clause, bsd-3-clause-attribution,
	// bsd-3-clause-clear, bsd-3-clause-lbnl, bsd-3-clause-modification,
	// bsd-3-clause-no-nuclear-license, bsd-3-clause-no-nuclear-license-2014,
	// bsd-3-clause-no-nuclear-warranty, bsd-3-clause-open-mpi, bsd-4-clause,
	// bsd-4-clause-shortened, bsd-4-clause-uc, bsd-protection, bsd-source-code,
	// bsl-1-0, busl-1-1, cal-1-0, cal-1-0-combined-work-exception, caldera,
	// catosl-1-1, cc0-1-0, cc-by-1-0, cc-by-2-0, cc-by-3-0, cc-by-3-0-at,
	// cc-by-3-0-us, cc-by-4-0, cc-by-nc-1-0, cc-by-nc-2-0, cc-by-nc-3-0,
	// cc-by-nc-4-0, cc-by-nc-nd-1-0, cc-by-nc-nd-2-0, cc-by-nc-nd-3-0,
	// cc-by-nc-nd-3-0-igo, cc-by-nc-nd-4-0, cc-by-nc-sa-1-0, cc-by-nc-sa-2-0,
	// cc-by-nc-sa-3-0, cc-by-nc-sa-4-0, cc-by-nd-1-0, cc-by-nd-2-0, cc-by-nd-3-0,
	// cc-by-nd-4-0, cc-by-sa-1-0, cc-by-sa-2-0, cc-by-sa-2-0-uk, cc-by-sa-2-1-jp,
	// cc-by-sa-3-0, cc-by-sa-3-0-at, cc-by-sa-4-0, cc-pddc, cddl-1-0, cddl-1-1,
	// cdla-permissive-1-0, cdla-sharing-1-0, cecill-1-0, cecill-1-1, cecill-2-0,
	// cecill-2-1, cecill-b, cecill-c, cern-ohl-1-1, cern-ohl-1-2, cern-ohl-p-2-0,
	// cern-ohl-s-2-0, cern-ohl-w-2-0, clartistic, classpath-exception-2-0,
	// clisp-exception-2-0, cnri-jython, cnri-python, cnri-python-gpl-compatible,
	// condor-1-1, copyleft-next-0-3-0, copyleft-next-0-3-1, cpal-1-0, cpl-1-0,
	// cpol-1-02, crossword, crystal-stacker, cua-opl-1-0, cube, c-uda-1-0, curl,
	// d-fsl-1-0, diffmark, digirule-foss-exception, doc, dotseqn, drl-1-0, dsdp,
	// dvipdfm, ecl-1-0, ecl-2-0, ecos-exception-2-0, efl-1-0, efl-2-0, egenix,
	// entessa, epics, epl-1-0, epl-2-0, erlpl-1-1, etalab-2-0, eu-datagrid,
	// eupl-1-0, eupl-1-1, eupl-1-2, eurosym, fair, fawkes-runtime-exception,
	// fltk-exception, font-exception-2-0, frameworx-1-0, freebsd-doc, freeimage,
	// freertos-exception-2-0, fsfap, fsful, fsfullr, ftl, gcc-exception-2-0,
	// gcc-exception-3-1, gd, gfdl-1-1-invariants-only,
	// gfdl-1-1-invariants-or-later, gfdl-1-1-no-invariants-only,
	// gfdl-1-1-no-invariants-or-later, gfdl-1-1-only, gfdl-1-1-or-later,
	// gfdl-1-2-invariants-only, gfdl-1-2-invariants-or-later,
	// gfdl-1-2-no-invariants-only, gfdl-1-2-no-invariants-or-later, gfdl-1-2-only,
	// gfdl-1-2-or-later, gfdl-1-3-invariants-only, gfdl-1-3-invariants-or-later,
	// gfdl-1-3-no-invariants-only, gfdl-1-3-no-invariants-or-later, gfdl-1-3-only,
	// gfdl-1-3-or-later, giftware, gl2ps, glide, glulxe, glwtpl,
	// gnu-javamail-exception, gnuplot, gpl-1-0-only, gpl-1-0-or-later,
	// gpl-2-0-only, gpl-2-0-or-later, gpl-3-0-linking-exception,
	// gpl-3-0-linking-source-exception, gpl-3-0-only, gpl-3-0-or-later,
	// gpl-cc-1-0, gsoap-1-3b, haskell-report, hippocratic-2-1, hpnd,
	// hpnd-sell-variant, htmltidy, i2p-gpl-java-exception, ibm-pibs, icu, ijg,
	// image-magick, imatix, imlib2, info-zip, intel, intel-acpi, interbase-1-0,
	// ipa, ipl-1-0, isc, jasper-2-0, jpnic, json, lal-1-2, lal-1-3, latex2e,
	// leptonica, lgpl-2-0-only, lgpl-2-0-or-later, lgpl-2-1-only,
	// lgpl-2-1-or-later, lgpl-3-0-linking-exception, lgpl-3-0-only,
	// lgpl-3-0-or-later, lgpllr, libpng, libpng-2-0, libselinux-1-0, libtiff,
	// libtool-exception, liliq-p-1-1, liliq-r-1-1, liliq-rplus-1-1, linux-openib,
	// linux-syscall-note, llvm-exception, lpl-1-0, lpl-1-02, lppl-1-0, lppl-1-1,
	// lppl-1-2, lppl-1-3a, lppl-1-3c, lzma-exception, make-index, mif-exception,
	// miros, mit, mit-0, mit-advertising, mit-cmu, mit-enna, mit-feh,
	// mit-modern-variant, mitnfa, mit-open-group, motosoto, mpich2, mpl-1-0,
	// mpl-1-1, mpl-2-0, mpl-2-0-no-copyleft-exception, ms-pl, ms-rl, mtll,
	// mulanpsl-1-0, mulanpsl-2-0, multics, mup, naist-2003, nasa-1-3, naumen,
	// nbpl-1-0, ncgl-uk-2-0, ncsa, netcdf, net-snmp, newsletr, ngpl, nist-pd,
	// nist-pd-fallback, nlod-1-0, nlpl, nokia, nokia-qt-exception-1-1, nosl,
	// noweb, npl-1-0, npl-1-1, nposl-3-0, nrl, ntp, ntp-0,
	// ocaml-lgpl-linking-exception, occt-exception-1-0, occt-pl, oclc-2-0,
	// odbl-1-0, odc-by-1-0, ofl-1-0, ofl-1-0-no-rfn, ofl-1-0-rfn, ofl-1-1,
	// ofl-1-1-no-rfn, ofl-1-1-rfn, ogc-1-0, ogdl-taiwan-1-0, ogl-canada-2-0,
	// ogl-uk-1-0, ogl-uk-2-0, ogl-uk-3-0, ogtsl, oldap-1-1, oldap-1-2, oldap-1-3,
	// oldap-1-4, oldap-2-0, oldap-2-0-1, oldap-2-1, oldap-2-2, oldap-2-2-1,
	// oldap-2-2-2, oldap-2-3, oldap-2-4, oldap-2-7, oml,
	// openjdk-assembly-exception-1-0, openssl, openvpn-openssl-exception, opl-1-0,
	// oset-pl-2-1, osl-1-0, osl-1-1, osl-2-0, osl-2-1, osl-3-0, o-uda-1-0,
	// parity-6-0-0, parity-7-0-0, pddl-1-0, php-3-0, php-3-01, plexus,
	// polyform-noncommercial-1-0-0, polyform-small-business-1-0-0, postgresql,
	// psf-2-0, psfrag, ps-or-pdf-font-exception-20170817, psutils, python-2-0,
	// qhull, qpl-1-0, qt-gpl-exception-1-0, qt-lgpl-exception-1-1,
	// qwt-exception-1-0, rdisc, rhecos-1-1, rpl-1-1, rpsl-1-0, rsa-md, rscpl,
	// ruby, saxpath, sax-pd, scea, sendmail, sendmail-8-23, sgi-b-1-0, sgi-b-1-1,
	// sgi-b-2-0, shl-0-51, shl-2-0, shl-2-1, simpl-2-0, sissl, sissl-1-2,
	// sleepycat, smlnj, smppl, snia, spencer-86, spencer-94, spencer-99, spl-1-0,
	// ssh-openssh, ssh-short, sspl-1-0, sugarcrm-1-1-3, swift-exception, swl,
	// tapr-ohl-1-0, tcl, tcp-wrappers, tmate, torque-1-1, tosl, tu-berlin-1-0,
	// tu-berlin-2-0, u-boot-exception-2-0, ucl-1-0, unicode-dfs-2015,
	// unicode-dfs-2016, unicode-tou, universal-foss-exception-1-0, unlicense,
	// upl-1-0, vim, vostrom, vsl-1-0, w3c, w3c-19980720, w3c-20150513, watcom-1-0,
	// wsuipa, wtfpl, wxwindows-exception-3-1, x11, xerox, xfree86-1-1, xinetd,
	// xnet, xpp, xskat, ypl-1-0, ypl-1-1, zed, zend-2-0, zimbra-1-3, zimbra-1-4,
	// zlib, zlib-acknowledgement, zpl-1-1, zpl-2-0, zpl-2-1.
	License string `json:"license,omitempty"`
	// Readme: README template name. Valid template name(s) are: default.
	Readme string `json:"readme,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DefaultBranch") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DefaultBranch") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

InitialConfig: Repository initialization configuration.

func (InitialConfig) MarshalJSON

func (s InitialConfig) MarshalJSON() ([]byte, error)

type Instance

type Instance struct {
	// CreateTime: Output only. Create timestamp.
	CreateTime string `json:"createTime,omitempty"`
	// HostConfig: Output only. A list of hostnames for this instance.
	HostConfig *HostConfig `json:"hostConfig,omitempty"`
	// KmsKey: Optional. Immutable. Customer-managed encryption key name, in the
	// format projects/*/locations/*/keyRings/*/cryptoKeys/*.
	KmsKey string `json:"kmsKey,omitempty"`
	// Labels: Optional. Labels as key value pairs.
	Labels map[string]string `json:"labels,omitempty"`
	// Name: Optional. A unique identifier for an instance. The name should be of
	// the format:
	// `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
	// `project_number`: Maps to a unique int64 id assigned to each project.
	// `location_id`: Refers to the region where the instance will be deployed.
	// Since Secure Source Manager is a regional service, it must be one of the
	// valid GCP regions. `instance_id`: User provided name for the instance, must
	// be unique for a project_number and location_id combination.
	Name string `json:"name,omitempty"`
	// PrivateConfig: Optional. Private settings for private instance.
	PrivateConfig *PrivateConfig `json:"privateConfig,omitempty"`
	// State: Output only. Current state of the instance.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - Not set. This should only be the case for incoming
	// requests.
	//   "CREATING" - Instance is being created.
	//   "ACTIVE" - Instance is ready.
	//   "DELETING" - Instance is being deleted.
	//   "PAUSED" - Instance is paused.
	//   "UNKNOWN" - Instance is unknown, we are not sure if it's functioning.
	State string `json:"state,omitempty"`
	// StateNote: Output only. An optional field providing information about the
	// current instance state.
	//
	// Possible values:
	//   "STATE_NOTE_UNSPECIFIED" - STATE_NOTE_UNSPECIFIED as the first value of
	// State.
	//   "PAUSED_CMEK_UNAVAILABLE" - CMEK access is unavailable.
	//   "INSTANCE_RESUMING" - INSTANCE_RESUMING indicates that the instance was
	// previously paused and is under the process of being brought back.
	StateNote string `json:"stateNote,omitempty"`
	// UpdateTime: Output only. Update timestamp.
	UpdateTime string `json:"updateTime,omitempty"`
	// WorkforceIdentityFederationConfig: Optional. Configuration for Workforce
	// Identity Federation to support third party identity provider. If unset,
	// defaults to the Google OIDC IdP.
	WorkforceIdentityFederationConfig *WorkforceIdentityFederationConfig `json:"workforceIdentityFederationConfig,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "CreateTime") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CreateTime") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Instance: A resource that represents a Secure Source Manager instance.

func (Instance) MarshalJSON

func (s Instance) MarshalJSON() ([]byte, error)

type Issue

type Issue struct {
	// Body: Optional. Issue body. Provides a detailed description of the issue.
	Body string `json:"body,omitempty"`
	// CloseTime: Output only. Close timestamp (if closed). Cleared when is
	// re-opened.
	CloseTime string `json:"closeTime,omitempty"`
	// CreateTime: Output only. Creation timestamp.
	CreateTime string `json:"createTime,omitempty"`
	// Etag: Optional. This checksum is computed by the server based on the value
	// of other fields, and may be sent on update and delete requests to ensure the
	// client has an up-to-date value before proceeding.
	Etag string `json:"etag,omitempty"`
	// Name: Identifier. Unique identifier for an issue. The issue id is generated
	// by the server. Format:
	// `projects/{project}/locations/{location}/repositories/{repository}/issues/{is
	// sue_id}`
	Name string `json:"name,omitempty"`
	// State: Output only. State of the issue.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - Unspecified.
	//   "OPEN" - An open issue.
	//   "CLOSED" - A closed issue.
	State string `json:"state,omitempty"`
	// Title: Required. Issue title.
	Title string `json:"title,omitempty"`
	// UpdateTime: Output only. Last updated timestamp.
	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. "Body") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Body") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Issue: Metadata of an Issue.

func (Issue) MarshalJSON

func (s Issue) MarshalJSON() ([]byte, error)

type IssueComment

type IssueComment struct {
	// Body: Required. The comment body.
	Body string `json:"body,omitempty"`
	// CreateTime: Output only. Creation timestamp.
	CreateTime string `json:"createTime,omitempty"`
	// Name: Identifier. Unique identifier for an issue comment. The comment id is
	// generated by the server. Format:
	// `projects/{project}/locations/{location}/repositories/{repository}/issues/{is
	// sue}/issueComments/{comment_id}`
	Name string `json:"name,omitempty"`
	// UpdateTime: Output only. Last updated timestamp.
	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. "Body") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Body") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

IssueComment: IssueComment represents a comment on an issue.

func (IssueComment) MarshalJSON

func (s IssueComment) MarshalJSON() ([]byte, error)

type ListBranchRulesResponse

type ListBranchRulesResponse struct {
	// BranchRules: The list of branch rules.
	BranchRules []*BranchRule `json:"branchRules,omitempty"`
	// NextPageToken: A token identifying a page of results the server should
	// return.
	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. "BranchRules") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BranchRules") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListBranchRulesResponse: ListBranchRulesResponse is the response to listing branchRules.

func (ListBranchRulesResponse) MarshalJSON

func (s ListBranchRulesResponse) MarshalJSON() ([]byte, error)

type ListHooksResponse

type ListHooksResponse struct {
	// Hooks: The list of hooks.
	Hooks []*Hook `json:"hooks,omitempty"`
	// NextPageToken: A token identifying a page of results the server should
	// return.
	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. "Hooks") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Hooks") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListHooksResponse: ListHooksResponse is response to list hooks.

func (ListHooksResponse) MarshalJSON

func (s ListHooksResponse) MarshalJSON() ([]byte, error)

type ListInstancesResponse

type ListInstancesResponse struct {
	// Instances: The list of instances.
	Instances []*Instance `json:"instances,omitempty"`
	// NextPageToken: A token identifying a page of results the server should
	// return.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// Unreachable: Locations that could not be reached.
	Unreachable []string `json:"unreachable,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Instances") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Instances") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (ListInstancesResponse) MarshalJSON

func (s ListInstancesResponse) MarshalJSON() ([]byte, error)

type ListIssueCommentsResponse

type ListIssueCommentsResponse struct {
	// IssueComments: The list of issue comments.
	IssueComments []*IssueComment `json:"issueComments,omitempty"`
	// NextPageToken: A token identifying a page of results the server should
	// return.
	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. "IssueComments") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "IssueComments") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListIssueCommentsResponse: The response to list issue comments.

func (ListIssueCommentsResponse) MarshalJSON

func (s ListIssueCommentsResponse) MarshalJSON() ([]byte, error)

type ListIssuesResponse

type ListIssuesResponse struct {
	// Issues: The list of issues.
	Issues []*Issue `json:"issues,omitempty"`
	// NextPageToken: A token identifying a page of results the server should
	// return.
	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. "Issues") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Issues") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListIssuesResponse: The response to list issues.

func (ListIssuesResponse) MarshalJSON

func (s ListIssuesResponse) MarshalJSON() ([]byte, error)

type ListLocationsResponse

type ListLocationsResponse struct {
	// Locations: A list of locations that matches the specified filter in the
	// request.
	Locations []*Location `json:"locations,omitempty"`
	// NextPageToken: The standard List next-page token.
	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. "Locations") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Locations") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListLocationsResponse: The response message for Locations.ListLocations.

func (ListLocationsResponse) MarshalJSON

func (s ListLocationsResponse) MarshalJSON() ([]byte, error)

type ListOperationsResponse

type ListOperationsResponse struct {
	// NextPageToken: The standard List next-page token.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// Operations: A list of operations that matches the specified filter in the
	// request.
	Operations []*Operation `json:"operations,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListOperationsResponse: The response message for Operations.ListOperations.

func (ListOperationsResponse) MarshalJSON

func (s ListOperationsResponse) MarshalJSON() ([]byte, error)

type ListPullRequestCommentsResponse

type ListPullRequestCommentsResponse struct {
	// NextPageToken: A token to set as page_token to retrieve the next page. If
	// this field is omitted, there are no subsequent pages.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// PullRequestComments: The list of pull request comments.
	PullRequestComments []*PullRequestComment `json:"pullRequestComments,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListPullRequestCommentsResponse: The response to list pull request comments.

func (ListPullRequestCommentsResponse) MarshalJSON

func (s ListPullRequestCommentsResponse) MarshalJSON() ([]byte, error)

type ListPullRequestFileDiffsResponse

type ListPullRequestFileDiffsResponse struct {
	// FileDiffs: The list of pull request file diffs.
	FileDiffs []*FileDiff `json:"fileDiffs,omitempty"`
	// NextPageToken: A token identifying a page of results the server should
	// return.
	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. "FileDiffs") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "FileDiffs") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListPullRequestFileDiffsResponse: ListPullRequestFileDiffsResponse is the response containing file diffs returned from ListPullRequestFileDiffs.

func (ListPullRequestFileDiffsResponse) MarshalJSON

func (s ListPullRequestFileDiffsResponse) MarshalJSON() ([]byte, error)

type ListPullRequestsResponse

type ListPullRequestsResponse struct {
	// NextPageToken: A token identifying a page of results the server should
	// return.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// PullRequests: The list of pull requests.
	PullRequests []*PullRequest `json:"pullRequests,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListPullRequestsResponse: ListPullRequestsResponse is the response to list pull requests.

func (ListPullRequestsResponse) MarshalJSON

func (s ListPullRequestsResponse) MarshalJSON() ([]byte, error)

type ListRepositoriesResponse

type ListRepositoriesResponse struct {
	// NextPageToken: A token identifying a page of results the server should
	// return.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// Repositories: The list of repositories.
	Repositories []*Repository `json:"repositories,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (ListRepositoriesResponse) MarshalJSON

func (s ListRepositoriesResponse) MarshalJSON() ([]byte, error)

type Location

type Location struct {
	// DisplayName: The friendly name for this location, typically a nearby city
	// name. For example, "Tokyo".
	DisplayName string `json:"displayName,omitempty"`
	// Labels: Cross-service attributes for the location. For example
	// {"cloud.googleapis.com/region": "us-east1"}
	Labels map[string]string `json:"labels,omitempty"`
	// LocationId: The canonical id for this location. For example: "us-east1".
	LocationId string `json:"locationId,omitempty"`
	// Metadata: Service-specific metadata. For example the available capacity at
	// the given location.
	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
	// Name: Resource name for the location, which may vary between
	// implementations. For example:
	// "projects/example-project/locations/us-east1"
	Name string `json:"name,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "DisplayName") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DisplayName") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Location: A resource that represents a Google Cloud location.

func (Location) MarshalJSON

func (s Location) MarshalJSON() ([]byte, error)

type MergePullRequestRequest

type MergePullRequestRequest struct {
}

MergePullRequestRequest: MergePullRequestRequest is the request to merge a pull request.

type OpenIssueRequest

type OpenIssueRequest struct {
	// Etag: Optional. The current etag of the issue. If the etag is provided and
	// does not match the current etag of the issue, opening will be blocked and an
	// ABORTED error will be returned.
	Etag string `json:"etag,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Etag") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

OpenIssueRequest: The request to open an issue.

func (OpenIssueRequest) MarshalJSON

func (s OpenIssueRequest) MarshalJSON() ([]byte, error)

type OpenPullRequestRequest

type OpenPullRequestRequest struct {
}

OpenPullRequestRequest: OpenPullRequestRequest is the request to open a pull request.

type Operation

type Operation struct {
	// Done: If the value is `false`, it means the operation is still in progress.
	// If `true`, the operation is completed, and either `error` or `response` is
	// available.
	Done bool `json:"done,omitempty"`
	// Error: The error result of the operation in case of failure or cancellation.
	Error *Status `json:"error,omitempty"`
	// Metadata: Service-specific metadata associated with the operation. It
	// typically contains progress information and common metadata such as create
	// time. Some services might not provide such metadata. Any method that returns
	// a long-running operation should document the metadata type, if any.
	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
	// Name: The server-assigned name, which is only unique within the same service
	// that originally returns it. If you use the default HTTP mapping, the `name`
	// should be a resource name ending with `operations/{unique_id}`.
	Name string `json:"name,omitempty"`
	// Response: The normal, successful response of the operation. If the original
	// method returns no data on success, such as `Delete`, the response is
	// `google.protobuf.Empty`. If the original method is standard
	// `Get`/`Create`/`Update`, the response should be the resource. For other
	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
	// original method name. For example, if the original method name is
	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
	Response googleapi.RawMessage `json:"response,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Done") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Operation: This resource represents a long-running operation that is the result of a network API call.

func (Operation) MarshalJSON

func (s Operation) MarshalJSON() ([]byte, error)

type OperationMetadata

type OperationMetadata struct {
	// ApiVersion: Output only. API version used to start the operation.
	ApiVersion string `json:"apiVersion,omitempty"`
	// CreateTime: Output only. The time the operation was created.
	CreateTime string `json:"createTime,omitempty"`
	// EndTime: Output only. The time the operation finished running.
	EndTime string `json:"endTime,omitempty"`
	// RequestedCancellation: Output only. Identifies whether the user has
	// requested cancellation of the operation. Operations that have successfully
	// been cancelled have Operation.error value with a google.rpc.Status.code of
	// 1, corresponding to `Code.CANCELLED`.
	RequestedCancellation bool `json:"requestedCancellation,omitempty"`
	// StatusMessage: Output only. Human-readable status of the operation, if any.
	StatusMessage string `json:"statusMessage,omitempty"`
	// Target: Output only. Server-defined resource path for the target of the
	// operation.
	Target string `json:"target,omitempty"`
	// Verb: Output only. Name of the verb executed by the operation.
	Verb string `json:"verb,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ApiVersion") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

OperationMetadata: Represents the metadata of the long-running operation.

func (OperationMetadata) MarshalJSON

func (s OperationMetadata) MarshalJSON() ([]byte, error)

type Policy

type Policy struct {
	// AuditConfigs: Specifies cloud audit logging configuration for this policy.
	AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"`
	// Bindings: Associates a list of `members`, or principals, with a `role`.
	// Optionally, may specify a `condition` that determines how and when the
	// `bindings` are applied. Each of the `bindings` must contain at least one
	// principal. The `bindings` in a `Policy` can refer to up to 1,500 principals;
	// up to 250 of these principals can be Google groups. Each occurrence of a
	// principal counts towards these limits. For example, if the `bindings` grant
	// 50 different roles to `user:alice@example.com`, and not to any other
	// principal, then you can add another 1,450 principals to the `bindings` in
	// the `Policy`.
	Bindings []*Binding `json:"bindings,omitempty"`
	// Etag: `etag` is used for optimistic concurrency control as a way to help
	// prevent simultaneous updates of a policy from overwriting each other. It is
	// strongly suggested that systems make use of the `etag` in the
	// read-modify-write cycle to perform policy updates in order to avoid race
	// conditions: An `etag` is returned in the response to `getIamPolicy`, and
	// systems are expected to put that etag in the request to `setIamPolicy` to
	// ensure that their change will be applied to the same version of the policy.
	// **Important:** If you use IAM Conditions, you must include the `etag` field
	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
	// you to overwrite a version `3` policy with a version `1` policy, and all of
	// the conditions in the version `3` policy are lost.
	Etag string `json:"etag,omitempty"`
	// Version: Specifies the format of the policy. Valid values are `0`, `1`, and
	// `3`. Requests that specify an invalid value are rejected. Any operation that
	// affects conditional role bindings must specify version `3`. This requirement
	// applies to the following operations: * Getting a policy that includes a
	// conditional role binding * Adding a conditional role binding to a policy *
	// Changing a conditional role binding in a policy * Removing any role binding,
	// with or without a condition, from a policy that includes conditions
	// **Important:** If you use IAM Conditions, you must include the `etag` field
	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
	// you to overwrite a version `3` policy with a version `1` policy, and all of
	// the conditions in the version `3` policy are lost. If a policy does not
	// include any conditions, operations on that policy may specify any valid
	// version or leave the field unset. To learn which resources support
	// conditions in their IAM policies, see the IAM documentation
	// (https://cloud.google.com/iam/help/conditions/resource-policies).
	Version int64 `json:"version,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AuditConfigs") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Policy: An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).

func (Policy) MarshalJSON

func (s Policy) MarshalJSON() ([]byte, error)

type Position

type Position struct {
	// Line: Required. The line number of the comment. Positive value means it's on
	// the new side of the diff, negative value means it's on the old side.
	Line int64 `json:"line,omitempty,string"`
	// Path: Required. The path of the file.
	Path string `json:"path,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Line") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Line") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Position: The position of the code comment.

func (Position) MarshalJSON

func (s Position) MarshalJSON() ([]byte, error)

type PrivateConfig

type PrivateConfig struct {
	// CaPool: Optional. Immutable. CA pool resource, resource must in the format
	// of `projects/{project}/locations/{location}/caPools/{ca_pool}`.
	CaPool string `json:"caPool,omitempty"`
	// HttpServiceAttachment: Output only. Service Attachment for HTTP, resource is
	// in the format of
	// `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`
	// .
	HttpServiceAttachment string `json:"httpServiceAttachment,omitempty"`
	// IsPrivate: Required. Immutable. Indicate if it's private instance.
	IsPrivate bool `json:"isPrivate,omitempty"`
	// PscAllowedProjects: Optional. Additional allowed projects for setting up PSC
	// connections. Instance host project is automatically allowed and does not
	// need to be included in this list.
	PscAllowedProjects []string `json:"pscAllowedProjects,omitempty"`
	// SshServiceAttachment: Output only. Service Attachment for SSH, resource is
	// in the format of
	// `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`
	// .
	SshServiceAttachment string `json:"sshServiceAttachment,omitempty"`
	// ForceSendFields is a list of field names (e.g. "CaPool") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CaPool") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

PrivateConfig: PrivateConfig includes settings for private instance.

func (PrivateConfig) MarshalJSON

func (s PrivateConfig) MarshalJSON() ([]byte, error)

type ProjectsLocationsGetCall

type ProjectsLocationsGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsGetCall) Do

Do executes the "securesourcemanager.projects.locations.get" call. Any non-2xx status code is an error. Response headers are in either *Location.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 (*ProjectsLocationsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsGetCall) Header

func (c *ProjectsLocationsGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsGetCall) IfNoneMatch

func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall

IfNoneMatch sets an 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.

type ProjectsLocationsInstancesCreateCall

type ProjectsLocationsInstancesCreateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsInstancesCreateCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsInstancesCreateCall) Do

Do executes the "securesourcemanager.projects.locations.instances.create" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsInstancesCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsInstancesCreateCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsInstancesCreateCall) InstanceId

InstanceId sets the optional parameter "instanceId": Required. ID of the instance to be created.

func (*ProjectsLocationsInstancesCreateCall) RequestId

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

type ProjectsLocationsInstancesDeleteCall

type ProjectsLocationsInstancesDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsInstancesDeleteCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsInstancesDeleteCall) Do

Do executes the "securesourcemanager.projects.locations.instances.delete" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsInstancesDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsInstancesDeleteCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsInstancesDeleteCall) RequestId

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

type ProjectsLocationsInstancesGetCall

type ProjectsLocationsInstancesGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsInstancesGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsInstancesGetCall) Do

Do executes the "securesourcemanager.projects.locations.instances.get" call. Any non-2xx status code is an error. Response headers are in either *Instance.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 (*ProjectsLocationsInstancesGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsInstancesGetCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsInstancesGetCall) IfNoneMatch

IfNoneMatch sets an 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.

type ProjectsLocationsInstancesGetIamPolicyCall

type ProjectsLocationsInstancesGetIamPolicyCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsInstancesGetIamPolicyCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsInstancesGetIamPolicyCall) Do

Do executes the "securesourcemanager.projects.locations.instances.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsLocationsInstancesGetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsInstancesGetIamPolicyCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsInstancesGetIamPolicyCall) IfNoneMatch

IfNoneMatch sets an 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.

func (*ProjectsLocationsInstancesGetIamPolicyCall) OptionsRequestedPolicyVersion

func (c *ProjectsLocationsInstancesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsInstancesGetIamPolicyCall

OptionsRequestedPolicyVersion sets the optional parameter "options.requestedPolicyVersion": The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).

type ProjectsLocationsInstancesListCall

type ProjectsLocationsInstancesListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsInstancesListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsInstancesListCall) Do

Do executes the "securesourcemanager.projects.locations.instances.list" call. Any non-2xx status code is an error. Response headers are in either *ListInstancesResponse.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 (*ProjectsLocationsInstancesListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsInstancesListCall) Filter

Filter sets the optional parameter "filter": Filter for filtering results.

func (*ProjectsLocationsInstancesListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsInstancesListCall) IfNoneMatch

IfNoneMatch sets an 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.

func (*ProjectsLocationsInstancesListCall) OrderBy

OrderBy sets the optional parameter "orderBy": Hint for how to order the results.

func (*ProjectsLocationsInstancesListCall) PageSize

PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

func (*ProjectsLocationsInstancesListCall) PageToken

PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.

func (*ProjectsLocationsInstancesListCall) Pages

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.

type ProjectsLocationsInstancesService

type ProjectsLocationsInstancesService struct {
	// contains filtered or unexported fields
}

func NewProjectsLocationsInstancesService

func NewProjectsLocationsInstancesService(s *Service) *ProjectsLocationsInstancesService

func (*ProjectsLocationsInstancesService) Create

Create: Creates a new instance in a given project and location.

- parent: Value for parent.

func (*ProjectsLocationsInstancesService) Delete

Delete: Deletes a single instance.

- name: Name of the resource.

func (*ProjectsLocationsInstancesService) Get

Get: Gets details of a single instance.

- name: Name of the resource.

func (*ProjectsLocationsInstancesService) GetIamPolicy

GetIamPolicy: Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

func (*ProjectsLocationsInstancesService) List

List: Lists Instances in a given project and location.

- parent: Parent value for ListInstancesRequest.

func (*ProjectsLocationsInstancesService) SetIamPolicy

SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.

func (*ProjectsLocationsInstancesService) TestIamPermissions

TestIamPermissions: Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

type ProjectsLocationsInstancesSetIamPolicyCall

type ProjectsLocationsInstancesSetIamPolicyCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsInstancesSetIamPolicyCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsInstancesSetIamPolicyCall) Do

Do executes the "securesourcemanager.projects.locations.instances.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsLocationsInstancesSetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsInstancesSetIamPolicyCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsInstancesTestIamPermissionsCall

type ProjectsLocationsInstancesTestIamPermissionsCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsInstancesTestIamPermissionsCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsInstancesTestIamPermissionsCall) Do

Do executes the "securesourcemanager.projects.locations.instances.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.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 (*ProjectsLocationsInstancesTestIamPermissionsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsInstancesTestIamPermissionsCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsListCall

type ProjectsLocationsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsListCall) Do

Do executes the "securesourcemanager.projects.locations.list" call. Any non-2xx status code is an error. Response headers are in either *ListLocationsResponse.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 (*ProjectsLocationsListCall) ExtraLocationTypes

func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall

ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list of extra location types that should be used as conditions for controlling the visibility of the locations.

func (*ProjectsLocationsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsListCall) Filter

Filter sets the optional parameter "filter": A filter to narrow down results to a preferred subset. The filtering language accepts strings like "displayName=tokyo", and is documented in more detail in AIP-160 (https://google.aip.dev/160).

func (*ProjectsLocationsListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsListCall) IfNoneMatch

func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall

IfNoneMatch sets an 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.

func (*ProjectsLocationsListCall) PageSize

PageSize sets the optional parameter "pageSize": The maximum number of results to return. If not set, the service selects a default.

func (*ProjectsLocationsListCall) PageToken

PageToken sets the optional parameter "pageToken": A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.

func (*ProjectsLocationsListCall) Pages

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.

type ProjectsLocationsOperationsCancelCall

type ProjectsLocationsOperationsCancelCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsOperationsCancelCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsCancelCall) Do

Do executes the "securesourcemanager.projects.locations.operations.cancel" call. 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 (*ProjectsLocationsOperationsCancelCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsOperationsCancelCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsOperationsDeleteCall

type ProjectsLocationsOperationsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsOperationsDeleteCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsDeleteCall) Do

Do executes the "securesourcemanager.projects.locations.operations.delete" call. 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 (*ProjectsLocationsOperationsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsOperationsDeleteCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsOperationsGetCall

type ProjectsLocationsOperationsGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsOperationsGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsGetCall) Do

Do executes the "securesourcemanager.projects.locations.operations.get" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsOperationsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsOperationsGetCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsOperationsGetCall) IfNoneMatch

IfNoneMatch sets an 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.

type ProjectsLocationsOperationsListCall

type ProjectsLocationsOperationsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsOperationsListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsListCall) Do

Do executes the "securesourcemanager.projects.locations.operations.list" call. Any non-2xx status code is an error. Response headers are in either *ListOperationsResponse.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 (*ProjectsLocationsOperationsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsOperationsListCall) Filter

Filter sets the optional parameter "filter": The standard list filter.

func (*ProjectsLocationsOperationsListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsOperationsListCall) IfNoneMatch

IfNoneMatch sets an 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.

func (*ProjectsLocationsOperationsListCall) PageSize

PageSize sets the optional parameter "pageSize": The standard list page size.

func (*ProjectsLocationsOperationsListCall) PageToken

PageToken sets the optional parameter "pageToken": The standard list page token.

func (*ProjectsLocationsOperationsListCall) Pages

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.

type ProjectsLocationsOperationsService

type ProjectsLocationsOperationsService struct {
	// contains filtered or unexported fields
}

func NewProjectsLocationsOperationsService

func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService

func (*ProjectsLocationsOperationsService) Cancel

Cancel: Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.

- name: The name of the operation resource to be cancelled.

func (*ProjectsLocationsOperationsService) Delete

Delete: Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.

- name: The name of the operation resource to be deleted.

func (*ProjectsLocationsOperationsService) Get

Get: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

- name: The name of the operation resource.

func (*ProjectsLocationsOperationsService) List

List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

- name: The name of the operation's parent resource.

type ProjectsLocationsRepositoriesBranchRulesCreateCall

type ProjectsLocationsRepositoriesBranchRulesCreateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesBranchRulesCreateCall) BranchRuleId

BranchRuleId sets the optional parameter "branchRuleId":

func (*ProjectsLocationsRepositoriesBranchRulesCreateCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesBranchRulesCreateCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.branchRules.create" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesBranchRulesCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesBranchRulesCreateCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsRepositoriesBranchRulesDeleteCall

type ProjectsLocationsRepositoriesBranchRulesDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesBranchRulesDeleteCall) AllowMissing

AllowMissing sets the optional parameter "allowMissing": If set to true, and the branch rule is not found, the request will succeed but no action will be taken on the server.

func (*ProjectsLocationsRepositoriesBranchRulesDeleteCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesBranchRulesDeleteCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.branchRules.delete" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesBranchRulesDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesBranchRulesDeleteCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsRepositoriesBranchRulesGetCall

type ProjectsLocationsRepositoriesBranchRulesGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesBranchRulesGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesBranchRulesGetCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.branchRules.get" call. Any non-2xx status code is an error. Response headers are in either *BranchRule.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 (*ProjectsLocationsRepositoriesBranchRulesGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesBranchRulesGetCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesBranchRulesGetCall) IfNoneMatch

IfNoneMatch sets an 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.

type ProjectsLocationsRepositoriesBranchRulesListCall

type ProjectsLocationsRepositoriesBranchRulesListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesBranchRulesListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesBranchRulesListCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.branchRules.list" call. Any non-2xx status code is an error. Response headers are in either *ListBranchRulesResponse.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 (*ProjectsLocationsRepositoriesBranchRulesListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesBranchRulesListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesBranchRulesListCall) IfNoneMatch

IfNoneMatch sets an 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.

func (*ProjectsLocationsRepositoriesBranchRulesListCall) PageSize

PageSize sets the optional parameter "pageSize":

func (*ProjectsLocationsRepositoriesBranchRulesListCall) PageToken

PageToken sets the optional parameter "pageToken":

func (*ProjectsLocationsRepositoriesBranchRulesListCall) Pages

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.

type ProjectsLocationsRepositoriesBranchRulesPatchCall

type ProjectsLocationsRepositoriesBranchRulesPatchCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesBranchRulesPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesBranchRulesPatchCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.branchRules.patch" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesBranchRulesPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesBranchRulesPatchCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesBranchRulesPatchCall) UpdateMask

UpdateMask sets the optional parameter "updateMask": Required. Field mask is used to specify the fields to be overwritten in the branchRule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement.

func (*ProjectsLocationsRepositoriesBranchRulesPatchCall) ValidateOnly

ValidateOnly sets the optional parameter "validateOnly": If set, validate the request and preview the review, but do not actually post it. (https://google.aip.dev/163, for declarative friendly)

type ProjectsLocationsRepositoriesBranchRulesService

type ProjectsLocationsRepositoriesBranchRulesService struct {
	// contains filtered or unexported fields
}

func NewProjectsLocationsRepositoriesBranchRulesService

func NewProjectsLocationsRepositoriesBranchRulesService(s *Service) *ProjectsLocationsRepositoriesBranchRulesService

func (*ProjectsLocationsRepositoriesBranchRulesService) Create

Create: CreateBranchRule creates a branch rule in a given repository.

- parent: .

func (*ProjectsLocationsRepositoriesBranchRulesService) Delete

Delete: DeleteBranchRule deletes a branch rule.

- name: .

func (*ProjectsLocationsRepositoriesBranchRulesService) Get

Get: GetBranchRule gets a branch rule.

  • name: Name of the repository to retrieve. The format is `projects/{project}/locations/{location}/repositories/{repository}/branchRu les/{branch_rule}`.

func (*ProjectsLocationsRepositoriesBranchRulesService) List

List: ListBranchRules lists branch rules in a given repository.

- parent: .

func (*ProjectsLocationsRepositoriesBranchRulesService) Patch

Patch: UpdateBranchRule updates a branch rule.

  • name: Optional. A unique identifier for a BranchRule. The name should be of the format: `projects/{project}/locations/{location}/repositories/{repository}/branchRu les/{branch_rule}`.

type ProjectsLocationsRepositoriesCreateCall

type ProjectsLocationsRepositoriesCreateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesCreateCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesCreateCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.create" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesCreateCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesCreateCall) RepositoryId

RepositoryId sets the optional parameter "repositoryId": Required. The ID to use for the repository, which will become the final component of the repository's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.

type ProjectsLocationsRepositoriesDeleteCall

type ProjectsLocationsRepositoriesDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesDeleteCall) AllowMissing

AllowMissing sets the optional parameter "allowMissing": If set to true, and the repository is not found, the request will succeed but no action will be taken on the server.

func (*ProjectsLocationsRepositoriesDeleteCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesDeleteCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.delete" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesDeleteCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsRepositoriesFetchBlobCall

type ProjectsLocationsRepositoriesFetchBlobCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesFetchBlobCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesFetchBlobCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.fetchBlob" call. Any non-2xx status code is an error. Response headers are in either *FetchBlobResponse.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 (*ProjectsLocationsRepositoriesFetchBlobCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesFetchBlobCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesFetchBlobCall) IfNoneMatch

IfNoneMatch sets an 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.

func (*ProjectsLocationsRepositoriesFetchBlobCall) Sha

Sha sets the optional parameter "sha": Required. The SHA-1 hash of the blob to retrieve.

type ProjectsLocationsRepositoriesFetchTreeCall

type ProjectsLocationsRepositoriesFetchTreeCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesFetchTreeCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesFetchTreeCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.fetchTree" call. Any non-2xx status code is an error. Response headers are in either *FetchTreeResponse.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 (*ProjectsLocationsRepositoriesFetchTreeCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesFetchTreeCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesFetchTreeCall) IfNoneMatch

IfNoneMatch sets an 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.

func (*ProjectsLocationsRepositoriesFetchTreeCall) PageSize

PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, at most 10,000 items will be returned.

func (*ProjectsLocationsRepositoriesFetchTreeCall) PageToken

PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.

func (*ProjectsLocationsRepositoriesFetchTreeCall) Pages

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 (*ProjectsLocationsRepositoriesFetchTreeCall) Recursive

Recursive sets the optional parameter "recursive": If true, include all subfolders and their files in the response. If false, only the immediate children are returned.

func (*ProjectsLocationsRepositoriesFetchTreeCall) Ref

Ref sets the optional parameter "ref": `ref` can be a SHA-1 hash, a branch name, or a tag. Specifies which tree to fetch. If not specified, the default branch will be used.

type ProjectsLocationsRepositoriesGetCall

type ProjectsLocationsRepositoriesGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesGetCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.get" call. Any non-2xx status code is an error. Response headers are in either *Repository.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 (*ProjectsLocationsRepositoriesGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesGetCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesGetCall) IfNoneMatch

IfNoneMatch sets an 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.

type ProjectsLocationsRepositoriesGetIamPolicyCall

type ProjectsLocationsRepositoriesGetIamPolicyCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesGetIamPolicyCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesGetIamPolicyCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsLocationsRepositoriesGetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesGetIamPolicyCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesGetIamPolicyCall) IfNoneMatch

IfNoneMatch sets an 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.

func (*ProjectsLocationsRepositoriesGetIamPolicyCall) OptionsRequestedPolicyVersion

func (c *ProjectsLocationsRepositoriesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsRepositoriesGetIamPolicyCall

OptionsRequestedPolicyVersion sets the optional parameter "options.requestedPolicyVersion": The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).

type ProjectsLocationsRepositoriesHooksCreateCall

type ProjectsLocationsRepositoriesHooksCreateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesHooksCreateCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesHooksCreateCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.hooks.create" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesHooksCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesHooksCreateCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesHooksCreateCall) HookId

HookId sets the optional parameter "hookId": Required. The ID to use for the hook, which will become the final component of the hook's resource name. This value restricts to lower-case letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.

type ProjectsLocationsRepositoriesHooksDeleteCall

type ProjectsLocationsRepositoriesHooksDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesHooksDeleteCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesHooksDeleteCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.hooks.delete" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesHooksDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesHooksDeleteCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsRepositoriesHooksGetCall

type ProjectsLocationsRepositoriesHooksGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesHooksGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesHooksGetCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.hooks.get" call. Any non-2xx status code is an error. Response headers are in either *Hook.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 (*ProjectsLocationsRepositoriesHooksGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesHooksGetCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesHooksGetCall) IfNoneMatch

IfNoneMatch sets an 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.

type ProjectsLocationsRepositoriesHooksListCall

type ProjectsLocationsRepositoriesHooksListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesHooksListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesHooksListCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.hooks.list" call. Any non-2xx status code is an error. Response headers are in either *ListHooksResponse.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 (*ProjectsLocationsRepositoriesHooksListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesHooksListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesHooksListCall) IfNoneMatch

IfNoneMatch sets an 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.

func (*ProjectsLocationsRepositoriesHooksListCall) PageSize

PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

func (*ProjectsLocationsRepositoriesHooksListCall) PageToken

PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.

func (*ProjectsLocationsRepositoriesHooksListCall) Pages

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.

type ProjectsLocationsRepositoriesHooksPatchCall

type ProjectsLocationsRepositoriesHooksPatchCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesHooksPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesHooksPatchCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.hooks.patch" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesHooksPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesHooksPatchCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesHooksPatchCall) UpdateMask

UpdateMask sets the optional parameter "updateMask": Required. Field mask is used to specify the fields to be overwritten in the hook resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement.

type ProjectsLocationsRepositoriesHooksService

type ProjectsLocationsRepositoriesHooksService struct {
	// contains filtered or unexported fields
}

func NewProjectsLocationsRepositoriesHooksService

func NewProjectsLocationsRepositoriesHooksService(s *Service) *ProjectsLocationsRepositoriesHooksService

func (*ProjectsLocationsRepositoriesHooksService) Create

Create: Creates a new hook in a given repository.

  • parent: The repository in which to create the hook. Values are of the form `projects/{project_number}/locations/{location_id}/repositories/{repository _id}`.

func (*ProjectsLocationsRepositoriesHooksService) Delete

Delete: Deletes a Hook.

  • name: Name of the hook to delete. The format is `projects/{project_number}/locations/{location_id}/repositories/{repository _id}/hooks/{hook_id}`.

func (*ProjectsLocationsRepositoriesHooksService) Get

Get: Gets metadata of a hook.

  • name: Name of the hook to retrieve. The format is `projects/{project_number}/locations/{location_id}/repositories/{repository _id}/hooks/{hook_id}`.

func (*ProjectsLocationsRepositoriesHooksService) List

List: Lists hooks in a given repository.

- parent: Parent value for ListHooksRequest.

func (*ProjectsLocationsRepositoriesHooksService) Patch

Patch: Updates the metadata of a hook.

  • name: Identifier. A unique identifier for a Hook. The name should be of the format: `projects/{project}/locations/{location_id}/repositories/{repository_id}/ho oks/{hook_id}`.

type ProjectsLocationsRepositoriesIssuesCloseCall

type ProjectsLocationsRepositoriesIssuesCloseCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesIssuesCloseCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesIssuesCloseCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.issues.close" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesIssuesCloseCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesIssuesCloseCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsRepositoriesIssuesCreateCall

type ProjectsLocationsRepositoriesIssuesCreateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesIssuesCreateCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesIssuesCreateCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.issues.create" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesIssuesCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesIssuesCreateCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsRepositoriesIssuesDeleteCall

type ProjectsLocationsRepositoriesIssuesDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesIssuesDeleteCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesIssuesDeleteCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.issues.delete" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesIssuesDeleteCall) Etag

Etag sets the optional parameter "etag": The current etag of the issue. If the etag is provided and does not match the current etag of the issue, deletion will be blocked and an ABORTED error will be returned.

func (*ProjectsLocationsRepositoriesIssuesDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesIssuesDeleteCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsRepositoriesIssuesGetCall

type ProjectsLocationsRepositoriesIssuesGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesIssuesGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesIssuesGetCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.issues.get" call. Any non-2xx status code is an error. Response headers are in either *Issue.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 (*ProjectsLocationsRepositoriesIssuesGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesIssuesGetCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesIssuesGetCall) IfNoneMatch

IfNoneMatch sets an 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.

type ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall

type ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.issues.issueComments.create" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsCreateCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall

type ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.issues.issueComments.delete" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsDeleteCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall

type ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.issues.issueComments.get" call. Any non-2xx status code is an error. Response headers are in either *IssueComment.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 (*ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsGetCall) IfNoneMatch

IfNoneMatch sets an 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.

type ProjectsLocationsRepositoriesIssuesIssueCommentsListCall

type ProjectsLocationsRepositoriesIssuesIssueCommentsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.issues.issueComments.list" call. Any non-2xx status code is an error. Response headers are in either *ListIssueCommentsResponse.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 (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) IfNoneMatch

IfNoneMatch sets an 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.

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) PageSize

PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) PageToken

PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsListCall) Pages

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.

type ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall

type ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.issues.issueComments.patch" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsPatchCall) UpdateMask

UpdateMask sets the optional parameter "updateMask": Field mask is used to specify the fields to be overwritten in the issue comment resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement.

type ProjectsLocationsRepositoriesIssuesIssueCommentsService

type ProjectsLocationsRepositoriesIssuesIssueCommentsService struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsService) Create

Create: Creates an issue comment.

  • parent: The issue in which to create the issue comment. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository _id}/issues/{issue_id}`.

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsService) Delete

Delete: Deletes an issue comment.

  • name: Name of the issue comment to delete. The format is `projects/{project_number}/locations/{location_id}/repositories/{repository _id}/issues/{issue_id}/issueComments/{comment_id}`.

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsService) Get

Get: Gets an issue comment.

  • name: Name of the issue comment to retrieve. The format is `projects/{project}/locations/{location}/repositories/{repository}/issues/{ issue_id}/issueComments/{comment_id}`.

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsService) List

List: Lists comments in an issue.

  • parent: The issue in which to list the comments. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository _id}/issues/{issue_id}`.

func (*ProjectsLocationsRepositoriesIssuesIssueCommentsService) Patch

Patch: Updates an issue comment.

  • name: Identifier. Unique identifier for an issue comment. The comment id is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/issues/{ issue}/issueComments/{comment_id}`.

type ProjectsLocationsRepositoriesIssuesListCall

type ProjectsLocationsRepositoriesIssuesListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesIssuesListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesIssuesListCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.issues.list" call. Any non-2xx status code is an error. Response headers are in either *ListIssuesResponse.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 (*ProjectsLocationsRepositoriesIssuesListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesIssuesListCall) Filter

Filter sets the optional parameter "filter": Used to filter the resulting issues list.

func (*ProjectsLocationsRepositoriesIssuesListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesIssuesListCall) IfNoneMatch

IfNoneMatch sets an 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.

func (*ProjectsLocationsRepositoriesIssuesListCall) PageSize

PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

func (*ProjectsLocationsRepositoriesIssuesListCall) PageToken

PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.

func (*ProjectsLocationsRepositoriesIssuesListCall) Pages

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.

type ProjectsLocationsRepositoriesIssuesOpenCall

type ProjectsLocationsRepositoriesIssuesOpenCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesIssuesOpenCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesIssuesOpenCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.issues.open" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesIssuesOpenCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesIssuesOpenCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsRepositoriesIssuesPatchCall

type ProjectsLocationsRepositoriesIssuesPatchCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesIssuesPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesIssuesPatchCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.issues.patch" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesIssuesPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesIssuesPatchCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesIssuesPatchCall) UpdateMask

UpdateMask sets the optional parameter "updateMask": Field mask is used to specify the fields to be overwritten in the issue resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement.

type ProjectsLocationsRepositoriesIssuesService

type ProjectsLocationsRepositoriesIssuesService struct {
	IssueComments *ProjectsLocationsRepositoriesIssuesIssueCommentsService
	// contains filtered or unexported fields
}

func NewProjectsLocationsRepositoriesIssuesService

func NewProjectsLocationsRepositoriesIssuesService(s *Service) *ProjectsLocationsRepositoriesIssuesService

func (*ProjectsLocationsRepositoriesIssuesService) Close

Close: Closes an issue.

  • name: Name of the issue to close. The format is `projects/{project_number}/locations/{location_id}/repositories/{repository _id}/issues/{issue_id}`.

func (*ProjectsLocationsRepositoriesIssuesService) Create

Create: Creates an issue.

  • parent: The repository in which to create the issue. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository _id}`.

func (*ProjectsLocationsRepositoriesIssuesService) Delete

Delete: Deletes an issue.

  • name: Name of the issue to delete. The format is `projects/{project_number}/locations/{location_id}/repositories/{repository _id}/issues/{issue_id}`.

func (*ProjectsLocationsRepositoriesIssuesService) Get

Get: Gets an issue.

  • name: Name of the issue to retrieve. The format is `projects/{project}/locations/{location}/repositories/{repository}/issues/{ issue_id}`.

func (*ProjectsLocationsRepositoriesIssuesService) List

List: Lists issues in a repository.

  • parent: The repository in which to list issues. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository _id}`.

func (*ProjectsLocationsRepositoriesIssuesService) Open

Open: Opens an issue.

  • name: Name of the issue to open. The format is `projects/{project_number}/locations/{location_id}/repositories/{repository _id}/issues/{issue_id}`.

func (*ProjectsLocationsRepositoriesIssuesService) Patch

Patch: Updates a issue.

  • name: Identifier. Unique identifier for an issue. The issue id is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/issues/{ issue_id}`.

type ProjectsLocationsRepositoriesListCall

type ProjectsLocationsRepositoriesListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesListCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.list" call. Any non-2xx status code is an error. Response headers are in either *ListRepositoriesResponse.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 (*ProjectsLocationsRepositoriesListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesListCall) Filter

Filter sets the optional parameter "filter": Filter results.

func (*ProjectsLocationsRepositoriesListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesListCall) IfNoneMatch

IfNoneMatch sets an 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.

func (*ProjectsLocationsRepositoriesListCall) Instance

Instance sets the optional parameter "instance": The name of the instance in which the repository is hosted, formatted as `projects/{project_number}/locations/{location_id}/instances/{instance_id}`. When listing repositories via securesourcemanager.googleapis.com, this field is required. When listing repositories via *.sourcemanager.dev, this field is ignored.

func (*ProjectsLocationsRepositoriesListCall) PageSize

PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

func (*ProjectsLocationsRepositoriesListCall) PageToken

PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.

func (*ProjectsLocationsRepositoriesListCall) Pages

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.

type ProjectsLocationsRepositoriesPatchCall

type ProjectsLocationsRepositoriesPatchCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesPatchCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.patch" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesPatchCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesPatchCall) UpdateMask

UpdateMask sets the optional parameter "updateMask": Field mask is used to specify the fields to be overwritten in the repository resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

func (*ProjectsLocationsRepositoriesPatchCall) ValidateOnly

ValidateOnly sets the optional parameter "validateOnly": False by default. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.

type ProjectsLocationsRepositoriesPullRequestsCloseCall

type ProjectsLocationsRepositoriesPullRequestsCloseCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesPullRequestsCloseCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesPullRequestsCloseCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.close" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesPullRequestsCloseCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesPullRequestsCloseCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsRepositoriesPullRequestsCreateCall

type ProjectsLocationsRepositoriesPullRequestsCreateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesPullRequestsCreateCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesPullRequestsCreateCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.create" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesPullRequestsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesPullRequestsCreateCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsRepositoriesPullRequestsGetCall

type ProjectsLocationsRepositoriesPullRequestsGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesPullRequestsGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesPullRequestsGetCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.get" call. Any non-2xx status code is an error. Response headers are in either *PullRequest.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 (*ProjectsLocationsRepositoriesPullRequestsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesPullRequestsGetCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesPullRequestsGetCall) IfNoneMatch

IfNoneMatch sets an 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.

type ProjectsLocationsRepositoriesPullRequestsListCall

type ProjectsLocationsRepositoriesPullRequestsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesPullRequestsListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesPullRequestsListCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.list" call. Any non-2xx status code is an error. Response headers are in either *ListPullRequestsResponse.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 (*ProjectsLocationsRepositoriesPullRequestsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesPullRequestsListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesPullRequestsListCall) IfNoneMatch

IfNoneMatch sets an 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.

func (*ProjectsLocationsRepositoriesPullRequestsListCall) PageSize

PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

func (*ProjectsLocationsRepositoriesPullRequestsListCall) PageToken

PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.

func (*ProjectsLocationsRepositoriesPullRequestsListCall) Pages

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.

type ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall

type ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.listFileDiffs" call. Any non-2xx status code is an error. Response headers are in either *ListPullRequestFileDiffsResponse.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 (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) IfNoneMatch

IfNoneMatch sets an 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.

func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) PageSize

PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) PageToken

PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.

func (*ProjectsLocationsRepositoriesPullRequestsListFileDiffsCall) Pages

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.

type ProjectsLocationsRepositoriesPullRequestsMergeCall

type ProjectsLocationsRepositoriesPullRequestsMergeCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesPullRequestsMergeCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesPullRequestsMergeCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.merge" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesPullRequestsMergeCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesPullRequestsMergeCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsRepositoriesPullRequestsOpenCall

type ProjectsLocationsRepositoriesPullRequestsOpenCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesPullRequestsOpenCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesPullRequestsOpenCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.open" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesPullRequestsOpenCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesPullRequestsOpenCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsRepositoriesPullRequestsPatchCall

type ProjectsLocationsRepositoriesPullRequestsPatchCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesPullRequestsPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesPullRequestsPatchCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.patch" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesPullRequestsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesPullRequestsPatchCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesPullRequestsPatchCall) UpdateMask

UpdateMask sets the optional parameter "updateMask": Field mask is used to specify the fields to be overwritten in the pull request resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "*" means full replacement.

type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall

type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.pullRequestComments.batchCreate" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsBatchCreateCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall

type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.pullRequestComments.create" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsCreateCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall

type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.pullRequestComments.delete" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsDeleteCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall

type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.pullRequestComments.get" call. Any non-2xx status code is an error. Response headers are in either *PullRequestComment.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 (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsGetCall) IfNoneMatch

IfNoneMatch sets an 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.

type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall

type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.pullRequestComments.list" call. Any non-2xx status code is an error. Response headers are in either *ListPullRequestCommentsResponse.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 (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) IfNoneMatch

IfNoneMatch sets an 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.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) PageSize

PageSize sets the optional parameter "pageSize": Requested page size. If unspecified, at most 100 pull request comments will be returned. The maximum value is 100; values above 100 will be coerced to 100.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) PageToken

PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsListCall) Pages

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.

type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall

type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.pullRequestComments.patch" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsPatchCall) UpdateMask

UpdateMask sets the optional parameter "updateMask": Field mask is used to specify the fields to be overwritten in the pull request comment resource by the update. Updatable fields are `body`.

type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall

type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.pullRequestComments.resolve" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsResolveCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService

type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) BatchCreate

BatchCreate: Batch creates pull request comments.

  • parent: The pull request in which to create the pull request comments. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository _id}/pullRequests/{pull_request_id}`.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) Create

Create: Creates a pull request comment.

  • parent: The pull request in which to create the pull request comment. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository _id}/pullRequests/{pull_request_id}`.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) Delete

Delete: Deletes a pull request comment.

  • name: Name of the pull request comment to delete. The format is `projects/{project_number}/locations/{location_id}/repositories/{repository _id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}`.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) Get

Get: Gets a pull request comment.

  • name: Name of the pull request comment to retrieve. The format is `projects/{project_number}/locations/{location_id}/repositories/{repository _id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}`.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) List

List: Lists pull request comments.

  • parent: The pull request in which to list pull request comments. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository _id}/pullRequests/{pull_request_id}`.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) Patch

Patch: Updates a pull request comment.

  • name: Identifier. Unique identifier for the pull request comment. The comment id is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequ ests/{pull_request}/pullRequestComments/{comment_id}`.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) Resolve

Resolve: Resolves pull request comments.

  • parent: The pull request in which to resolve the pull request comments. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository _id}/pullRequests/{pull_request_id}`.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService) Unresolve

Unresolve: Unresolves pull request comment.

  • parent: The pull request in which to resolve the pull request comments. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository _id}/pullRequests/{pull_request_id}`.

type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall

type ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.pullRequests.pullRequestComments.unresolve" call. Any non-2xx status code is an error. Response headers are in either *Operation.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 (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsUnresolveCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsRepositoriesPullRequestsService

type ProjectsLocationsRepositoriesPullRequestsService struct {
	PullRequestComments *ProjectsLocationsRepositoriesPullRequestsPullRequestCommentsService
	// contains filtered or unexported fields
}

func NewProjectsLocationsRepositoriesPullRequestsService

func NewProjectsLocationsRepositoriesPullRequestsService(s *Service) *ProjectsLocationsRepositoriesPullRequestsService

func (*ProjectsLocationsRepositoriesPullRequestsService) Close

Close: Closes a pull request without merging.

  • name: The pull request to close. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository _id}/pullRequests/{pull_request_id}`.

func (*ProjectsLocationsRepositoriesPullRequestsService) Create

Create: Creates a pull request.

  • parent: The repository that the pull request is created from. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository _id}`.

func (*ProjectsLocationsRepositoriesPullRequestsService) Get

Get: Gets a pull request.

  • name: Name of the pull request to retrieve. The format is `projects/{project}/locations/{location}/repositories/{repository}/pullRequ ests/{pull_request}`.

func (*ProjectsLocationsRepositoriesPullRequestsService) List

List: Lists pull requests in a repository.

  • parent: The repository in which to list pull requests. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository _id}`.

func (*ProjectsLocationsRepositoriesPullRequestsService) ListFileDiffs

ListFileDiffs: Lists a pull request's file diffs.

  • name: The pull request to list file diffs for. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository _id}/pullRequests/{pull_request_id}`.

func (*ProjectsLocationsRepositoriesPullRequestsService) Merge

Merge: Merges a pull request.

  • name: The pull request to merge. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository _id}/pullRequests/{pull_request_id}`.

func (*ProjectsLocationsRepositoriesPullRequestsService) Open

Open: Opens a pull request.

  • name: The pull request to open. Format: `projects/{project_number}/locations/{location_id}/repositories/{repository _id}/pullRequests/{pull_request_id}`.

func (*ProjectsLocationsRepositoriesPullRequestsService) Patch

Patch: Updates a pull request.

  • name: Output only. A unique identifier for a PullRequest. The number appended at the end is generated by the server. Format: `projects/{project}/locations/{location}/repositories/{repository}/pullRequ ests/{pull_request_id}`.

type ProjectsLocationsRepositoriesService

type ProjectsLocationsRepositoriesService struct {
	BranchRules *ProjectsLocationsRepositoriesBranchRulesService

	Hooks *ProjectsLocationsRepositoriesHooksService

	Issues *ProjectsLocationsRepositoriesIssuesService

	PullRequests *ProjectsLocationsRepositoriesPullRequestsService
	// contains filtered or unexported fields
}

func NewProjectsLocationsRepositoriesService

func NewProjectsLocationsRepositoriesService(s *Service) *ProjectsLocationsRepositoriesService

func (*ProjectsLocationsRepositoriesService) Create

Create: Creates a new repository in a given project and location. The Repository.Instance field is required in the request body for requests using the securesourcemanager.googleapis.com endpoint.

  • parent: The project in which to create the repository. Values are of the form `projects/{project_number}/locations/{location_id}`.

func (*ProjectsLocationsRepositoriesService) Delete

Delete: Deletes a Repository.

  • name: Name of the repository to delete. The format is `projects/{project_number}/locations/{location_id}/repositories/{repository _id}`.

func (*ProjectsLocationsRepositoriesService) FetchBlob

FetchBlob: Fetches a blob from a repository.

  • repository: The format is `projects/{project_number}/locations/{location_id}/repositories/{repository _id}`. Specifies the repository containing the blob.

func (*ProjectsLocationsRepositoriesService) FetchTree

FetchTree: Fetches a tree from a repository.

  • repository: The format is `projects/{project_number}/locations/{location_id}/repositories/{repository _id}`. Specifies the repository to fetch the tree from.

func (*ProjectsLocationsRepositoriesService) Get

Get: Gets metadata of a repository.

  • name: Name of the repository to retrieve. The format is `projects/{project_number}/locations/{location_id}/repositories/{repository _id}`.

func (*ProjectsLocationsRepositoriesService) GetIamPolicy

GetIamPolicy: Get IAM policy for a repository.

func (*ProjectsLocationsRepositoriesService) List

List: Lists Repositories in a given project and location. The instance field is required in the query parameter for requests using the securesourcemanager.googleapis.com endpoint.

- parent: Parent value for ListRepositoriesRequest.

func (*ProjectsLocationsRepositoriesService) Patch

Patch: Updates the metadata of a repository.

  • name: Optional. A unique identifier for a repository. The name should be of the format: `projects/{project}/locations/{location_id}/repositories/{repository_id}`.

func (*ProjectsLocationsRepositoriesService) SetIamPolicy

SetIamPolicy: Set IAM policy on a repository.

func (*ProjectsLocationsRepositoriesService) TestIamPermissions

TestIamPermissions: Test IAM permissions on a repository. IAM permission checks are not required on this method.

type ProjectsLocationsRepositoriesSetIamPolicyCall

type ProjectsLocationsRepositoriesSetIamPolicyCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesSetIamPolicyCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesSetIamPolicyCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ProjectsLocationsRepositoriesSetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesSetIamPolicyCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsRepositoriesTestIamPermissionsCall

type ProjectsLocationsRepositoriesTestIamPermissionsCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsRepositoriesTestIamPermissionsCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRepositoriesTestIamPermissionsCall) Do

Do executes the "securesourcemanager.projects.locations.repositories.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.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 (*ProjectsLocationsRepositoriesTestIamPermissionsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsRepositoriesTestIamPermissionsCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsService

type ProjectsLocationsService struct {
	Instances *ProjectsLocationsInstancesService

	Operations *ProjectsLocationsOperationsService

	Repositories *ProjectsLocationsRepositoriesService
	// contains filtered or unexported fields
}

func NewProjectsLocationsService

func NewProjectsLocationsService(s *Service) *ProjectsLocationsService

func (*ProjectsLocationsService) Get

Get: Gets information about a location.

- name: Resource name for the location.

func (*ProjectsLocationsService) List

List: Lists information about the supported locations for this service.

- name: The resource that owns the locations collection, if applicable.

type ProjectsService

type ProjectsService struct {
	Locations *ProjectsLocationsService
	// contains filtered or unexported fields
}

func NewProjectsService

func NewProjectsService(s *Service) *ProjectsService

type PullRequest

type PullRequest struct {
	// Base: Required. The branch to merge changes in.
	Base *Branch `json:"base,omitempty"`
	// Body: Optional. The pull request body. Provides a detailed description of
	// the changes.
	Body string `json:"body,omitempty"`
	// CloseTime: Output only. Close timestamp (if closed or merged). Cleared when
	// pull request is re-opened.
	CloseTime string `json:"closeTime,omitempty"`
	// CreateTime: Output only. Creation timestamp.
	CreateTime string `json:"createTime,omitempty"`
	// Head: Immutable. The branch containing the changes to be merged.
	Head *Branch `json:"head,omitempty"`
	// Name: Output only. A unique identifier for a PullRequest. The number
	// appended at the end is generated by the server. Format:
	// `projects/{project}/locations/{location}/repositories/{repository}/pullReques
	// ts/{pull_request_id}`
	Name string `json:"name,omitempty"`
	// State: Output only. State of the pull request (open, closed or merged).
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - Unspecified.
	//   "OPEN" - An open pull request.
	//   "CLOSED" - A closed pull request.
	//   "MERGED" - A merged pull request.
	State string `json:"state,omitempty"`
	// Title: Required. The pull request title.
	Title string `json:"title,omitempty"`
	// UpdateTime: Output only. Last updated timestamp.
	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. "Base") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Base") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

PullRequest: Metadata of a PullRequest. PullRequest is the request from a user to merge a branch (head) into another branch (base).

func (PullRequest) MarshalJSON

func (s PullRequest) MarshalJSON() ([]byte, error)

type PullRequestComment

type PullRequestComment struct {
	// Code: Optional. The comment on a code line.
	Code *Code `json:"code,omitempty"`
	// Comment: Optional. The general pull request comment.
	Comment *Comment `json:"comment,omitempty"`
	// CreateTime: Output only. Creation timestamp.
	CreateTime string `json:"createTime,omitempty"`
	// Name: Identifier. Unique identifier for the pull request comment. The
	// comment id is generated by the server. Format:
	// `projects/{project}/locations/{location}/repositories/{repository}/pullReques
	// ts/{pull_request}/pullRequestComments/{comment_id}`
	Name string `json:"name,omitempty"`
	// Review: Optional. The review summary comment.
	Review *Review `json:"review,omitempty"`
	// UpdateTime: Output only. Last updated timestamp.
	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. "Code") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Code") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

PullRequestComment: PullRequestComment represents a comment on a pull request.

func (PullRequestComment) MarshalJSON

func (s PullRequestComment) MarshalJSON() ([]byte, error)

type PushOption

type PushOption struct {
	// BranchFilter: Optional. Trigger hook for matching branches only. Specified
	// as glob pattern. If empty or *, events for all branches are reported.
	// Examples: main, {main,release*}. See
	// https://pkg.go.dev/github.com/gobwas/glob documentation.
	BranchFilter string `json:"branchFilter,omitempty"`
	// ForceSendFields is a list of field names (e.g. "BranchFilter") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BranchFilter") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (PushOption) MarshalJSON

func (s PushOption) MarshalJSON() ([]byte, error)

type Repository

type Repository struct {
	// CreateTime: Output only. Create timestamp.
	CreateTime string `json:"createTime,omitempty"`
	// Description: Optional. Description of the repository, which cannot exceed
	// 500 characters.
	Description string `json:"description,omitempty"`
	// Etag: Optional. This checksum is computed by the server based on the value
	// of other fields, and may be sent on update and delete requests to ensure the
	// client has an up-to-date value before proceeding.
	Etag string `json:"etag,omitempty"`
	// InitialConfig: Input only. Initial configurations for the repository.
	InitialConfig *InitialConfig `json:"initialConfig,omitempty"`
	// Instance: Optional. The name of the instance in which the repository is
	// hosted, formatted as
	// `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
	// When creating repository via securesourcemanager.googleapis.com, this field
	// is used as input. When creating repository via *.sourcemanager.dev, this
	// field is output only.
	Instance string `json:"instance,omitempty"`
	// Name: Optional. A unique identifier for a repository. The name should be of
	// the format:
	// `projects/{project}/locations/{location_id}/repositories/{repository_id}`
	Name string `json:"name,omitempty"`
	// Uid: Output only. Unique identifier of the repository.
	Uid string `json:"uid,omitempty"`
	// UpdateTime: Output only. Update timestamp.
	UpdateTime string `json:"updateTime,omitempty"`
	// Uris: Output only. URIs for the repository.
	Uris *URIs `json:"uris,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "CreateTime") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CreateTime") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Repository: Metadata of a Secure Source Manager repository.

func (Repository) MarshalJSON

func (s Repository) MarshalJSON() ([]byte, error)

type ResolvePullRequestCommentsRequest

type ResolvePullRequestCommentsRequest struct {
	// AutoFill: Optional. If set, at least one comment in a thread is required,
	// rest of the comments in the same thread will be automatically updated to
	// resolved. If unset, all comments in the same thread need be present.
	AutoFill bool `json:"autoFill,omitempty"`
	// Names: Required. The names of the pull request comments to resolve. Format:
	// `projects/{project_number}/locations/{location_id}/repositories/{repository_i
	// d}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}` Only
	// comments from the same threads are allowed in the same request.
	Names []string `json:"names,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AutoFill") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AutoFill") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ResolvePullRequestCommentsRequest: The request to resolve multiple pull request comments.

func (ResolvePullRequestCommentsRequest) MarshalJSON

func (s ResolvePullRequestCommentsRequest) MarshalJSON() ([]byte, error)

type Review

type Review struct {
	// ActionType: Required. The review action type.
	//
	// Possible values:
	//   "ACTION_TYPE_UNSPECIFIED" - Unspecified.
	//   "COMMENT" - A general review comment.
	//   "CHANGE_REQUESTED" - Change required from this review.
	//   "APPROVED" - Change approved from this review.
	ActionType string `json:"actionType,omitempty"`
	// Body: Optional. The comment body.
	Body string `json:"body,omitempty"`
	// EffectiveCommitSha: Output only. The effective commit sha this review is
	// pointing to.
	EffectiveCommitSha string `json:"effectiveCommitSha,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ActionType") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ActionType") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Review: The review summary comment.

func (Review) MarshalJSON

func (s Review) MarshalJSON() ([]byte, error)

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	Projects *ProjectsService
	// contains filtered or unexported fields
}

func New deprecated

func New(client *http.Client) (*Service, error)

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

func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

NewService creates a new Service.

type SetIamPolicyRequest

type SetIamPolicyRequest struct {
	// Policy: REQUIRED: The complete policy to be applied to the `resource`. The
	// size of the policy is limited to a few 10s of KB. An empty policy is a valid
	// policy but certain Google Cloud services (such as Projects) might reject
	// them.
	Policy *Policy `json:"policy,omitempty"`
	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to
	// modify. Only the fields in the mask will be modified. If no mask is
	// provided, the following default mask is used: `paths: "bindings, etag"
	UpdateMask string `json:"updateMask,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Policy") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Policy") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

SetIamPolicyRequest: Request message for `SetIamPolicy` method.

func (SetIamPolicyRequest) MarshalJSON

func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error)

type Status

type Status struct {
	// Code: The status code, which should be an enum value of google.rpc.Code.
	Code int64 `json:"code,omitempty"`
	// Details: A list of messages that carry the error details. There is a common
	// set of message types for APIs to use.
	Details []googleapi.RawMessage `json:"details,omitempty"`
	// Message: A developer-facing error message, which should be in English. Any
	// user-facing error message should be localized and sent in the
	// google.rpc.Status.details field, or localized by the client.
	Message string `json:"message,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Code") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).

func (Status) MarshalJSON

func (s Status) MarshalJSON() ([]byte, error)

type TestIamPermissionsRequest

type TestIamPermissionsRequest struct {
	// Permissions: The set of permissions to check for the `resource`. Permissions
	// with wildcards (such as `*` or `storage.*`) are not allowed. For more
	// information see IAM Overview
	// (https://cloud.google.com/iam/docs/overview#permissions).
	Permissions []string `json:"permissions,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Permissions") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Permissions") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

TestIamPermissionsRequest: Request message for `TestIamPermissions` method.

func (TestIamPermissionsRequest) MarshalJSON

func (s TestIamPermissionsRequest) MarshalJSON() ([]byte, error)

type TestIamPermissionsResponse

type TestIamPermissionsResponse struct {
	// Permissions: A subset of `TestPermissionsRequest.permissions` that the
	// caller is allowed.
	Permissions []string `json:"permissions,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Permissions") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Permissions") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

TestIamPermissionsResponse: Response message for `TestIamPermissions` method.

func (TestIamPermissionsResponse) MarshalJSON

func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error)

type TreeEntry

type TreeEntry struct {
	// Mode: Output only. The file mode as a string (e.g., "100644"). Indicates
	// file type. Output-only.
	Mode string `json:"mode,omitempty"`
	// Path: Output only. The path of the file or directory within the tree (e.g.,
	// "src/main/java/MyClass.java"). Output-only.
	Path string `json:"path,omitempty"`
	// Sha: Output only. The SHA-1 hash of the object (unique identifier).
	// Output-only.
	Sha string `json:"sha,omitempty"`
	// Size: Output only. The size of the object in bytes (only for blobs).
	// Output-only.
	Size int64 `json:"size,omitempty,string"`
	// Type: Output only. The type of the object (TREE, BLOB, COMMIT). Output-only.
	//
	// Possible values:
	//   "OBJECT_TYPE_UNSPECIFIED" - Default value, indicating the object type is
	// unspecified.
	//   "TREE" - Represents a directory (folder).
	//   "BLOB" - Represents a file (contains file data).
	//   "COMMIT" - Represents a pointer to another repository (submodule).
	Type string `json:"type,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Mode") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Mode") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

TreeEntry: Represents an entry within a tree structure (like a Git tree).

func (TreeEntry) MarshalJSON

func (s TreeEntry) MarshalJSON() ([]byte, error)

type URIs

type URIs struct {
	// Api: Output only. API is the URI for API access.
	Api string `json:"api,omitempty"`
	// GitHttps: Output only. git_https is the git HTTPS URI for git operations.
	GitHttps string `json:"gitHttps,omitempty"`
	// Html: Output only. HTML is the URI for user to view the repository in a
	// browser.
	Html string `json:"html,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Api") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Api") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

URIs: URIs for the repository.

func (URIs) MarshalJSON

func (s URIs) MarshalJSON() ([]byte, error)

type UnresolvePullRequestCommentsRequest

type UnresolvePullRequestCommentsRequest struct {
	// AutoFill: Optional. If set, at least one comment in a thread is required,
	// rest of the comments in the same thread will be automatically updated to
	// unresolved. If unset, all comments in the same thread need be present.
	AutoFill bool `json:"autoFill,omitempty"`
	// Names: Required. The names of the pull request comments to unresolve.
	// Format:
	// `projects/{project_number}/locations/{location_id}/repositories/{repository_i
	// d}/pullRequests/{pull_request_id}/pullRequestComments/{comment_id}` Only
	// comments from the same threads are allowed in the same request.
	Names []string `json:"names,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AutoFill") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AutoFill") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

UnresolvePullRequestCommentsRequest: The request to unresolve multiple pull request comments.

func (UnresolvePullRequestCommentsRequest) MarshalJSON

func (s UnresolvePullRequestCommentsRequest) MarshalJSON() ([]byte, error)

type WorkforceIdentityFederationConfig

type WorkforceIdentityFederationConfig struct {
	// Enabled: Optional. Immutable. Whether Workforce Identity Federation is
	// enabled.
	Enabled bool `json:"enabled,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Enabled") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

WorkforceIdentityFederationConfig: WorkforceIdentityFederationConfig allows this instance to support users from external identity providers.

func (WorkforceIdentityFederationConfig) MarshalJSON

func (s WorkforceIdentityFederationConfig) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL