Documentation ¶
Overview ¶
Package networkservices provides access to the Network Services API.
For product documentation, see: https://cloud.google.com/networking
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/networkservices/v1beta1" ... ctx := context.Background() networkservicesService, err := networkservices.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:
networkservicesService, err := networkservices.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, ...) networkservicesService, err := networkservices.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See google.golang.org/api/option.ClientOption for details on options.
Index ¶
- Constants
- type AuditConfig
- type AuditLogConfig
- type Binding
- type CancelOperationRequest
- type Empty
- type EndpointMatcher
- type EndpointPolicy
- type Expr
- type ExtensionChain
- type ExtensionChainExtension
- type ExtensionChainMatchCondition
- type Gateway
- type GrpcRoute
- type GrpcRouteDestination
- type GrpcRouteFaultInjectionPolicy
- type GrpcRouteFaultInjectionPolicyAbort
- type GrpcRouteFaultInjectionPolicyDelay
- type GrpcRouteHeaderMatch
- type GrpcRouteMethodMatch
- type GrpcRouteRetryPolicy
- type GrpcRouteRouteAction
- type GrpcRouteRouteMatch
- type GrpcRouteRouteRule
- type GrpcRouteStatefulSessionAffinityPolicy
- type HttpRoute
- type HttpRouteCorsPolicy
- type HttpRouteDestination
- type HttpRouteFaultInjectionPolicy
- type HttpRouteFaultInjectionPolicyAbort
- type HttpRouteFaultInjectionPolicyDelay
- type HttpRouteHeaderMatch
- type HttpRouteHeaderMatchIntegerRange
- type HttpRouteHeaderModifier
- type HttpRouteQueryParameterMatch
- type HttpRouteRedirect
- type HttpRouteRequestMirrorPolicy
- type HttpRouteRetryPolicy
- type HttpRouteRouteAction
- type HttpRouteRouteMatch
- type HttpRouteRouteRule
- type HttpRouteStatefulSessionAffinityPolicy
- type HttpRouteURLRewrite
- type LbRouteExtension
- type LbTrafficExtension
- type ListEndpointPoliciesResponse
- type ListGatewaysResponse
- type ListGrpcRoutesResponse
- type ListHttpRoutesResponse
- type ListLbRouteExtensionsResponse
- type ListLbTrafficExtensionsResponse
- type ListLocationsResponse
- type ListMeshesResponse
- type ListOperationsResponse
- type ListServiceBindingsResponse
- type ListServiceLbPoliciesResponse
- type ListTcpRoutesResponse
- type ListTlsRoutesResponse
- type Location
- type Mesh
- type MetadataLabelMatcher
- type MetadataLabels
- type Operation
- type OperationMetadata
- type Policy
- type ProjectsLocationsEndpointPoliciesCreateCall
- func (c *ProjectsLocationsEndpointPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsEndpointPoliciesCreateCall
- func (c *ProjectsLocationsEndpointPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsEndpointPoliciesCreateCall) EndpointPolicyId(endpointPolicyId string) *ProjectsLocationsEndpointPoliciesCreateCall
- func (c *ProjectsLocationsEndpointPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointPoliciesCreateCall
- func (c *ProjectsLocationsEndpointPoliciesCreateCall) Header() http.Header
- type ProjectsLocationsEndpointPoliciesDeleteCall
- func (c *ProjectsLocationsEndpointPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsEndpointPoliciesDeleteCall
- func (c *ProjectsLocationsEndpointPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsEndpointPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointPoliciesDeleteCall
- func (c *ProjectsLocationsEndpointPoliciesDeleteCall) Header() http.Header
- type ProjectsLocationsEndpointPoliciesGetCall
- func (c *ProjectsLocationsEndpointPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsEndpointPoliciesGetCall
- func (c *ProjectsLocationsEndpointPoliciesGetCall) Do(opts ...googleapi.CallOption) (*EndpointPolicy, error)
- func (c *ProjectsLocationsEndpointPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointPoliciesGetCall
- func (c *ProjectsLocationsEndpointPoliciesGetCall) Header() http.Header
- func (c *ProjectsLocationsEndpointPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointPoliciesGetCall
- type ProjectsLocationsEndpointPoliciesGetIamPolicyCall
- func (c *ProjectsLocationsEndpointPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEndpointPoliciesGetIamPolicyCall
- func (c *ProjectsLocationsEndpointPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsEndpointPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointPoliciesGetIamPolicyCall
- func (c *ProjectsLocationsEndpointPoliciesGetIamPolicyCall) Header() http.Header
- func (c *ProjectsLocationsEndpointPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointPoliciesGetIamPolicyCall
- func (c *ProjectsLocationsEndpointPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsEndpointPoliciesGetIamPolicyCall
- type ProjectsLocationsEndpointPoliciesListCall
- func (c *ProjectsLocationsEndpointPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsEndpointPoliciesListCall
- func (c *ProjectsLocationsEndpointPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListEndpointPoliciesResponse, error)
- func (c *ProjectsLocationsEndpointPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointPoliciesListCall
- func (c *ProjectsLocationsEndpointPoliciesListCall) Header() http.Header
- func (c *ProjectsLocationsEndpointPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointPoliciesListCall
- func (c *ProjectsLocationsEndpointPoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsEndpointPoliciesListCall
- func (c *ProjectsLocationsEndpointPoliciesListCall) PageToken(pageToken string) *ProjectsLocationsEndpointPoliciesListCall
- func (c *ProjectsLocationsEndpointPoliciesListCall) Pages(ctx context.Context, f func(*ListEndpointPoliciesResponse) error) error
- type ProjectsLocationsEndpointPoliciesPatchCall
- func (c *ProjectsLocationsEndpointPoliciesPatchCall) Context(ctx context.Context) *ProjectsLocationsEndpointPoliciesPatchCall
- func (c *ProjectsLocationsEndpointPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsEndpointPoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointPoliciesPatchCall
- func (c *ProjectsLocationsEndpointPoliciesPatchCall) Header() http.Header
- func (c *ProjectsLocationsEndpointPoliciesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEndpointPoliciesPatchCall
- type ProjectsLocationsEndpointPoliciesService
- func (r *ProjectsLocationsEndpointPoliciesService) Create(parent string, endpointpolicy *EndpointPolicy) *ProjectsLocationsEndpointPoliciesCreateCall
- func (r *ProjectsLocationsEndpointPoliciesService) Delete(name string) *ProjectsLocationsEndpointPoliciesDeleteCall
- func (r *ProjectsLocationsEndpointPoliciesService) Get(name string) *ProjectsLocationsEndpointPoliciesGetCall
- func (r *ProjectsLocationsEndpointPoliciesService) GetIamPolicy(resource string) *ProjectsLocationsEndpointPoliciesGetIamPolicyCall
- func (r *ProjectsLocationsEndpointPoliciesService) List(parent string) *ProjectsLocationsEndpointPoliciesListCall
- func (r *ProjectsLocationsEndpointPoliciesService) Patch(name string, endpointpolicy *EndpointPolicy) *ProjectsLocationsEndpointPoliciesPatchCall
- func (r *ProjectsLocationsEndpointPoliciesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsEndpointPoliciesSetIamPolicyCall
- func (r *ProjectsLocationsEndpointPoliciesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsEndpointPoliciesTestIamPermissionsCall
- type ProjectsLocationsEndpointPoliciesSetIamPolicyCall
- func (c *ProjectsLocationsEndpointPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEndpointPoliciesSetIamPolicyCall
- func (c *ProjectsLocationsEndpointPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsEndpointPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointPoliciesSetIamPolicyCall
- func (c *ProjectsLocationsEndpointPoliciesSetIamPolicyCall) Header() http.Header
- type ProjectsLocationsEndpointPoliciesTestIamPermissionsCall
- func (c *ProjectsLocationsEndpointPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsEndpointPoliciesTestIamPermissionsCall
- func (c *ProjectsLocationsEndpointPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsLocationsEndpointPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointPoliciesTestIamPermissionsCall
- func (c *ProjectsLocationsEndpointPoliciesTestIamPermissionsCall) Header() http.Header
- type ProjectsLocationsGatewaysCreateCall
- func (c *ProjectsLocationsGatewaysCreateCall) Context(ctx context.Context) *ProjectsLocationsGatewaysCreateCall
- func (c *ProjectsLocationsGatewaysCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsGatewaysCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysCreateCall
- func (c *ProjectsLocationsGatewaysCreateCall) GatewayId(gatewayId string) *ProjectsLocationsGatewaysCreateCall
- func (c *ProjectsLocationsGatewaysCreateCall) Header() http.Header
- type ProjectsLocationsGatewaysDeleteCall
- func (c *ProjectsLocationsGatewaysDeleteCall) Context(ctx context.Context) *ProjectsLocationsGatewaysDeleteCall
- func (c *ProjectsLocationsGatewaysDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsGatewaysDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysDeleteCall
- func (c *ProjectsLocationsGatewaysDeleteCall) Header() http.Header
- type ProjectsLocationsGatewaysGetCall
- func (c *ProjectsLocationsGatewaysGetCall) Context(ctx context.Context) *ProjectsLocationsGatewaysGetCall
- func (c *ProjectsLocationsGatewaysGetCall) Do(opts ...googleapi.CallOption) (*Gateway, error)
- func (c *ProjectsLocationsGatewaysGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysGetCall
- func (c *ProjectsLocationsGatewaysGetCall) Header() http.Header
- func (c *ProjectsLocationsGatewaysGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGatewaysGetCall
- type ProjectsLocationsGatewaysGetIamPolicyCall
- func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGatewaysGetIamPolicyCall
- func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysGetIamPolicyCall
- func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Header() http.Header
- func (c *ProjectsLocationsGatewaysGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsGatewaysGetIamPolicyCall
- func (c *ProjectsLocationsGatewaysGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsGatewaysGetIamPolicyCall
- type ProjectsLocationsGatewaysListCall
- func (c *ProjectsLocationsGatewaysListCall) Context(ctx context.Context) *ProjectsLocationsGatewaysListCall
- func (c *ProjectsLocationsGatewaysListCall) Do(opts ...googleapi.CallOption) (*ListGatewaysResponse, error)
- func (c *ProjectsLocationsGatewaysListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysListCall
- func (c *ProjectsLocationsGatewaysListCall) Header() http.Header
- func (c *ProjectsLocationsGatewaysListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGatewaysListCall
- func (c *ProjectsLocationsGatewaysListCall) PageSize(pageSize int64) *ProjectsLocationsGatewaysListCall
- func (c *ProjectsLocationsGatewaysListCall) PageToken(pageToken string) *ProjectsLocationsGatewaysListCall
- func (c *ProjectsLocationsGatewaysListCall) Pages(ctx context.Context, f func(*ListGatewaysResponse) error) error
- type ProjectsLocationsGatewaysPatchCall
- func (c *ProjectsLocationsGatewaysPatchCall) Context(ctx context.Context) *ProjectsLocationsGatewaysPatchCall
- func (c *ProjectsLocationsGatewaysPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsGatewaysPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysPatchCall
- func (c *ProjectsLocationsGatewaysPatchCall) Header() http.Header
- func (c *ProjectsLocationsGatewaysPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGatewaysPatchCall
- type ProjectsLocationsGatewaysService
- func (r *ProjectsLocationsGatewaysService) Create(parent string, gateway *Gateway) *ProjectsLocationsGatewaysCreateCall
- func (r *ProjectsLocationsGatewaysService) Delete(name string) *ProjectsLocationsGatewaysDeleteCall
- func (r *ProjectsLocationsGatewaysService) Get(name string) *ProjectsLocationsGatewaysGetCall
- func (r *ProjectsLocationsGatewaysService) GetIamPolicy(resource string) *ProjectsLocationsGatewaysGetIamPolicyCall
- func (r *ProjectsLocationsGatewaysService) List(parent string) *ProjectsLocationsGatewaysListCall
- func (r *ProjectsLocationsGatewaysService) Patch(name string, gateway *Gateway) *ProjectsLocationsGatewaysPatchCall
- func (r *ProjectsLocationsGatewaysService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsGatewaysSetIamPolicyCall
- func (r *ProjectsLocationsGatewaysService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsGatewaysTestIamPermissionsCall
- type ProjectsLocationsGatewaysSetIamPolicyCall
- func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGatewaysSetIamPolicyCall
- func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysSetIamPolicyCall
- func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Header() http.Header
- type ProjectsLocationsGatewaysTestIamPermissionsCall
- func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsGatewaysTestIamPermissionsCall
- func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysTestIamPermissionsCall
- func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Header() http.Header
- type ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error)
- func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Header() http.Header
- func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
- type ProjectsLocationsGrpcRoutesCreateCall
- func (c *ProjectsLocationsGrpcRoutesCreateCall) Context(ctx context.Context) *ProjectsLocationsGrpcRoutesCreateCall
- func (c *ProjectsLocationsGrpcRoutesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsGrpcRoutesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGrpcRoutesCreateCall
- func (c *ProjectsLocationsGrpcRoutesCreateCall) GrpcRouteId(grpcRouteId string) *ProjectsLocationsGrpcRoutesCreateCall
- func (c *ProjectsLocationsGrpcRoutesCreateCall) Header() http.Header
- type ProjectsLocationsGrpcRoutesDeleteCall
- func (c *ProjectsLocationsGrpcRoutesDeleteCall) Context(ctx context.Context) *ProjectsLocationsGrpcRoutesDeleteCall
- func (c *ProjectsLocationsGrpcRoutesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsGrpcRoutesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGrpcRoutesDeleteCall
- func (c *ProjectsLocationsGrpcRoutesDeleteCall) Header() http.Header
- type ProjectsLocationsGrpcRoutesGetCall
- func (c *ProjectsLocationsGrpcRoutesGetCall) Context(ctx context.Context) *ProjectsLocationsGrpcRoutesGetCall
- func (c *ProjectsLocationsGrpcRoutesGetCall) Do(opts ...googleapi.CallOption) (*GrpcRoute, error)
- func (c *ProjectsLocationsGrpcRoutesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGrpcRoutesGetCall
- func (c *ProjectsLocationsGrpcRoutesGetCall) Header() http.Header
- func (c *ProjectsLocationsGrpcRoutesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGrpcRoutesGetCall
- type ProjectsLocationsGrpcRoutesListCall
- func (c *ProjectsLocationsGrpcRoutesListCall) Context(ctx context.Context) *ProjectsLocationsGrpcRoutesListCall
- func (c *ProjectsLocationsGrpcRoutesListCall) Do(opts ...googleapi.CallOption) (*ListGrpcRoutesResponse, error)
- func (c *ProjectsLocationsGrpcRoutesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGrpcRoutesListCall
- func (c *ProjectsLocationsGrpcRoutesListCall) Header() http.Header
- func (c *ProjectsLocationsGrpcRoutesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGrpcRoutesListCall
- func (c *ProjectsLocationsGrpcRoutesListCall) PageSize(pageSize int64) *ProjectsLocationsGrpcRoutesListCall
- func (c *ProjectsLocationsGrpcRoutesListCall) PageToken(pageToken string) *ProjectsLocationsGrpcRoutesListCall
- func (c *ProjectsLocationsGrpcRoutesListCall) Pages(ctx context.Context, f func(*ListGrpcRoutesResponse) error) error
- type ProjectsLocationsGrpcRoutesPatchCall
- func (c *ProjectsLocationsGrpcRoutesPatchCall) Context(ctx context.Context) *ProjectsLocationsGrpcRoutesPatchCall
- func (c *ProjectsLocationsGrpcRoutesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsGrpcRoutesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGrpcRoutesPatchCall
- func (c *ProjectsLocationsGrpcRoutesPatchCall) Header() http.Header
- func (c *ProjectsLocationsGrpcRoutesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGrpcRoutesPatchCall
- type ProjectsLocationsGrpcRoutesService
- func (r *ProjectsLocationsGrpcRoutesService) Create(parent string, grpcroute *GrpcRoute) *ProjectsLocationsGrpcRoutesCreateCall
- func (r *ProjectsLocationsGrpcRoutesService) Delete(name string) *ProjectsLocationsGrpcRoutesDeleteCall
- func (r *ProjectsLocationsGrpcRoutesService) Get(name string) *ProjectsLocationsGrpcRoutesGetCall
- func (r *ProjectsLocationsGrpcRoutesService) List(parent string) *ProjectsLocationsGrpcRoutesListCall
- func (r *ProjectsLocationsGrpcRoutesService) Patch(name string, grpcroute *GrpcRoute) *ProjectsLocationsGrpcRoutesPatchCall
- type ProjectsLocationsHttpRoutesCreateCall
- func (c *ProjectsLocationsHttpRoutesCreateCall) Context(ctx context.Context) *ProjectsLocationsHttpRoutesCreateCall
- func (c *ProjectsLocationsHttpRoutesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsHttpRoutesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsHttpRoutesCreateCall
- func (c *ProjectsLocationsHttpRoutesCreateCall) Header() http.Header
- func (c *ProjectsLocationsHttpRoutesCreateCall) HttpRouteId(httpRouteId string) *ProjectsLocationsHttpRoutesCreateCall
- type ProjectsLocationsHttpRoutesDeleteCall
- func (c *ProjectsLocationsHttpRoutesDeleteCall) Context(ctx context.Context) *ProjectsLocationsHttpRoutesDeleteCall
- func (c *ProjectsLocationsHttpRoutesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsHttpRoutesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsHttpRoutesDeleteCall
- func (c *ProjectsLocationsHttpRoutesDeleteCall) Header() http.Header
- type ProjectsLocationsHttpRoutesGetCall
- func (c *ProjectsLocationsHttpRoutesGetCall) Context(ctx context.Context) *ProjectsLocationsHttpRoutesGetCall
- func (c *ProjectsLocationsHttpRoutesGetCall) Do(opts ...googleapi.CallOption) (*HttpRoute, error)
- func (c *ProjectsLocationsHttpRoutesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsHttpRoutesGetCall
- func (c *ProjectsLocationsHttpRoutesGetCall) Header() http.Header
- func (c *ProjectsLocationsHttpRoutesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsHttpRoutesGetCall
- type ProjectsLocationsHttpRoutesListCall
- func (c *ProjectsLocationsHttpRoutesListCall) Context(ctx context.Context) *ProjectsLocationsHttpRoutesListCall
- func (c *ProjectsLocationsHttpRoutesListCall) Do(opts ...googleapi.CallOption) (*ListHttpRoutesResponse, error)
- func (c *ProjectsLocationsHttpRoutesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsHttpRoutesListCall
- func (c *ProjectsLocationsHttpRoutesListCall) Header() http.Header
- func (c *ProjectsLocationsHttpRoutesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsHttpRoutesListCall
- func (c *ProjectsLocationsHttpRoutesListCall) PageSize(pageSize int64) *ProjectsLocationsHttpRoutesListCall
- func (c *ProjectsLocationsHttpRoutesListCall) PageToken(pageToken string) *ProjectsLocationsHttpRoutesListCall
- func (c *ProjectsLocationsHttpRoutesListCall) Pages(ctx context.Context, f func(*ListHttpRoutesResponse) error) error
- type ProjectsLocationsHttpRoutesPatchCall
- func (c *ProjectsLocationsHttpRoutesPatchCall) Context(ctx context.Context) *ProjectsLocationsHttpRoutesPatchCall
- func (c *ProjectsLocationsHttpRoutesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsHttpRoutesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsHttpRoutesPatchCall
- func (c *ProjectsLocationsHttpRoutesPatchCall) Header() http.Header
- func (c *ProjectsLocationsHttpRoutesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsHttpRoutesPatchCall
- type ProjectsLocationsHttpRoutesService
- func (r *ProjectsLocationsHttpRoutesService) Create(parent string, httproute *HttpRoute) *ProjectsLocationsHttpRoutesCreateCall
- func (r *ProjectsLocationsHttpRoutesService) Delete(name string) *ProjectsLocationsHttpRoutesDeleteCall
- func (r *ProjectsLocationsHttpRoutesService) Get(name string) *ProjectsLocationsHttpRoutesGetCall
- func (r *ProjectsLocationsHttpRoutesService) List(parent string) *ProjectsLocationsHttpRoutesListCall
- func (r *ProjectsLocationsHttpRoutesService) Patch(name string, httproute *HttpRoute) *ProjectsLocationsHttpRoutesPatchCall
- type ProjectsLocationsLbRouteExtensionsCreateCall
- func (c *ProjectsLocationsLbRouteExtensionsCreateCall) Context(ctx context.Context) *ProjectsLocationsLbRouteExtensionsCreateCall
- func (c *ProjectsLocationsLbRouteExtensionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsLbRouteExtensionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLbRouteExtensionsCreateCall
- func (c *ProjectsLocationsLbRouteExtensionsCreateCall) Header() http.Header
- func (c *ProjectsLocationsLbRouteExtensionsCreateCall) LbRouteExtensionId(lbRouteExtensionId string) *ProjectsLocationsLbRouteExtensionsCreateCall
- func (c *ProjectsLocationsLbRouteExtensionsCreateCall) RequestId(requestId string) *ProjectsLocationsLbRouteExtensionsCreateCall
- type ProjectsLocationsLbRouteExtensionsDeleteCall
- func (c *ProjectsLocationsLbRouteExtensionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsLbRouteExtensionsDeleteCall
- func (c *ProjectsLocationsLbRouteExtensionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsLbRouteExtensionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLbRouteExtensionsDeleteCall
- func (c *ProjectsLocationsLbRouteExtensionsDeleteCall) Header() http.Header
- func (c *ProjectsLocationsLbRouteExtensionsDeleteCall) RequestId(requestId string) *ProjectsLocationsLbRouteExtensionsDeleteCall
- type ProjectsLocationsLbRouteExtensionsGetCall
- func (c *ProjectsLocationsLbRouteExtensionsGetCall) Context(ctx context.Context) *ProjectsLocationsLbRouteExtensionsGetCall
- func (c *ProjectsLocationsLbRouteExtensionsGetCall) Do(opts ...googleapi.CallOption) (*LbRouteExtension, error)
- func (c *ProjectsLocationsLbRouteExtensionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLbRouteExtensionsGetCall
- func (c *ProjectsLocationsLbRouteExtensionsGetCall) Header() http.Header
- func (c *ProjectsLocationsLbRouteExtensionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLbRouteExtensionsGetCall
- type ProjectsLocationsLbRouteExtensionsListCall
- func (c *ProjectsLocationsLbRouteExtensionsListCall) Context(ctx context.Context) *ProjectsLocationsLbRouteExtensionsListCall
- func (c *ProjectsLocationsLbRouteExtensionsListCall) Do(opts ...googleapi.CallOption) (*ListLbRouteExtensionsResponse, error)
- func (c *ProjectsLocationsLbRouteExtensionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLbRouteExtensionsListCall
- func (c *ProjectsLocationsLbRouteExtensionsListCall) Filter(filter string) *ProjectsLocationsLbRouteExtensionsListCall
- func (c *ProjectsLocationsLbRouteExtensionsListCall) Header() http.Header
- func (c *ProjectsLocationsLbRouteExtensionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLbRouteExtensionsListCall
- func (c *ProjectsLocationsLbRouteExtensionsListCall) OrderBy(orderBy string) *ProjectsLocationsLbRouteExtensionsListCall
- func (c *ProjectsLocationsLbRouteExtensionsListCall) PageSize(pageSize int64) *ProjectsLocationsLbRouteExtensionsListCall
- func (c *ProjectsLocationsLbRouteExtensionsListCall) PageToken(pageToken string) *ProjectsLocationsLbRouteExtensionsListCall
- func (c *ProjectsLocationsLbRouteExtensionsListCall) Pages(ctx context.Context, f func(*ListLbRouteExtensionsResponse) error) error
- type ProjectsLocationsLbRouteExtensionsPatchCall
- func (c *ProjectsLocationsLbRouteExtensionsPatchCall) Context(ctx context.Context) *ProjectsLocationsLbRouteExtensionsPatchCall
- func (c *ProjectsLocationsLbRouteExtensionsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsLbRouteExtensionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsLbRouteExtensionsPatchCall
- func (c *ProjectsLocationsLbRouteExtensionsPatchCall) Header() http.Header
- func (c *ProjectsLocationsLbRouteExtensionsPatchCall) RequestId(requestId string) *ProjectsLocationsLbRouteExtensionsPatchCall
- func (c *ProjectsLocationsLbRouteExtensionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsLbRouteExtensionsPatchCall
- type ProjectsLocationsLbRouteExtensionsService
- func (r *ProjectsLocationsLbRouteExtensionsService) Create(parent string, lbrouteextension *LbRouteExtension) *ProjectsLocationsLbRouteExtensionsCreateCall
- func (r *ProjectsLocationsLbRouteExtensionsService) Delete(name string) *ProjectsLocationsLbRouteExtensionsDeleteCall
- func (r *ProjectsLocationsLbRouteExtensionsService) Get(name string) *ProjectsLocationsLbRouteExtensionsGetCall
- func (r *ProjectsLocationsLbRouteExtensionsService) List(parent string) *ProjectsLocationsLbRouteExtensionsListCall
- func (r *ProjectsLocationsLbRouteExtensionsService) Patch(name string, lbrouteextension *LbRouteExtension) *ProjectsLocationsLbRouteExtensionsPatchCall
- type ProjectsLocationsLbTrafficExtensionsCreateCall
- func (c *ProjectsLocationsLbTrafficExtensionsCreateCall) Context(ctx context.Context) *ProjectsLocationsLbTrafficExtensionsCreateCall
- func (c *ProjectsLocationsLbTrafficExtensionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsLbTrafficExtensionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLbTrafficExtensionsCreateCall
- func (c *ProjectsLocationsLbTrafficExtensionsCreateCall) Header() http.Header
- func (c *ProjectsLocationsLbTrafficExtensionsCreateCall) LbTrafficExtensionId(lbTrafficExtensionId string) *ProjectsLocationsLbTrafficExtensionsCreateCall
- func (c *ProjectsLocationsLbTrafficExtensionsCreateCall) RequestId(requestId string) *ProjectsLocationsLbTrafficExtensionsCreateCall
- type ProjectsLocationsLbTrafficExtensionsDeleteCall
- func (c *ProjectsLocationsLbTrafficExtensionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsLbTrafficExtensionsDeleteCall
- func (c *ProjectsLocationsLbTrafficExtensionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsLbTrafficExtensionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLbTrafficExtensionsDeleteCall
- func (c *ProjectsLocationsLbTrafficExtensionsDeleteCall) Header() http.Header
- func (c *ProjectsLocationsLbTrafficExtensionsDeleteCall) RequestId(requestId string) *ProjectsLocationsLbTrafficExtensionsDeleteCall
- type ProjectsLocationsLbTrafficExtensionsGetCall
- func (c *ProjectsLocationsLbTrafficExtensionsGetCall) Context(ctx context.Context) *ProjectsLocationsLbTrafficExtensionsGetCall
- func (c *ProjectsLocationsLbTrafficExtensionsGetCall) Do(opts ...googleapi.CallOption) (*LbTrafficExtension, error)
- func (c *ProjectsLocationsLbTrafficExtensionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLbTrafficExtensionsGetCall
- func (c *ProjectsLocationsLbTrafficExtensionsGetCall) Header() http.Header
- func (c *ProjectsLocationsLbTrafficExtensionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLbTrafficExtensionsGetCall
- type ProjectsLocationsLbTrafficExtensionsListCall
- func (c *ProjectsLocationsLbTrafficExtensionsListCall) Context(ctx context.Context) *ProjectsLocationsLbTrafficExtensionsListCall
- func (c *ProjectsLocationsLbTrafficExtensionsListCall) Do(opts ...googleapi.CallOption) (*ListLbTrafficExtensionsResponse, error)
- func (c *ProjectsLocationsLbTrafficExtensionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLbTrafficExtensionsListCall
- func (c *ProjectsLocationsLbTrafficExtensionsListCall) Filter(filter string) *ProjectsLocationsLbTrafficExtensionsListCall
- func (c *ProjectsLocationsLbTrafficExtensionsListCall) Header() http.Header
- func (c *ProjectsLocationsLbTrafficExtensionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLbTrafficExtensionsListCall
- func (c *ProjectsLocationsLbTrafficExtensionsListCall) OrderBy(orderBy string) *ProjectsLocationsLbTrafficExtensionsListCall
- func (c *ProjectsLocationsLbTrafficExtensionsListCall) PageSize(pageSize int64) *ProjectsLocationsLbTrafficExtensionsListCall
- func (c *ProjectsLocationsLbTrafficExtensionsListCall) PageToken(pageToken string) *ProjectsLocationsLbTrafficExtensionsListCall
- func (c *ProjectsLocationsLbTrafficExtensionsListCall) Pages(ctx context.Context, f func(*ListLbTrafficExtensionsResponse) error) error
- type ProjectsLocationsLbTrafficExtensionsPatchCall
- func (c *ProjectsLocationsLbTrafficExtensionsPatchCall) Context(ctx context.Context) *ProjectsLocationsLbTrafficExtensionsPatchCall
- func (c *ProjectsLocationsLbTrafficExtensionsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsLbTrafficExtensionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsLbTrafficExtensionsPatchCall
- func (c *ProjectsLocationsLbTrafficExtensionsPatchCall) Header() http.Header
- func (c *ProjectsLocationsLbTrafficExtensionsPatchCall) RequestId(requestId string) *ProjectsLocationsLbTrafficExtensionsPatchCall
- func (c *ProjectsLocationsLbTrafficExtensionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsLbTrafficExtensionsPatchCall
- type ProjectsLocationsLbTrafficExtensionsService
- func (r *ProjectsLocationsLbTrafficExtensionsService) Create(parent string, lbtrafficextension *LbTrafficExtension) *ProjectsLocationsLbTrafficExtensionsCreateCall
- func (r *ProjectsLocationsLbTrafficExtensionsService) Delete(name string) *ProjectsLocationsLbTrafficExtensionsDeleteCall
- func (r *ProjectsLocationsLbTrafficExtensionsService) Get(name string) *ProjectsLocationsLbTrafficExtensionsGetCall
- func (r *ProjectsLocationsLbTrafficExtensionsService) List(parent string) *ProjectsLocationsLbTrafficExtensionsListCall
- func (r *ProjectsLocationsLbTrafficExtensionsService) Patch(name string, lbtrafficextension *LbTrafficExtension) *ProjectsLocationsLbTrafficExtensionsPatchCall
- type ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
- func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Header() http.Header
- func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error
- type ProjectsLocationsMeshesCreateCall
- func (c *ProjectsLocationsMeshesCreateCall) Context(ctx context.Context) *ProjectsLocationsMeshesCreateCall
- func (c *ProjectsLocationsMeshesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsMeshesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMeshesCreateCall
- func (c *ProjectsLocationsMeshesCreateCall) Header() http.Header
- func (c *ProjectsLocationsMeshesCreateCall) MeshId(meshId string) *ProjectsLocationsMeshesCreateCall
- type ProjectsLocationsMeshesDeleteCall
- func (c *ProjectsLocationsMeshesDeleteCall) Context(ctx context.Context) *ProjectsLocationsMeshesDeleteCall
- func (c *ProjectsLocationsMeshesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsMeshesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMeshesDeleteCall
- func (c *ProjectsLocationsMeshesDeleteCall) Header() http.Header
- type ProjectsLocationsMeshesGetCall
- func (c *ProjectsLocationsMeshesGetCall) Context(ctx context.Context) *ProjectsLocationsMeshesGetCall
- func (c *ProjectsLocationsMeshesGetCall) Do(opts ...googleapi.CallOption) (*Mesh, error)
- func (c *ProjectsLocationsMeshesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMeshesGetCall
- func (c *ProjectsLocationsMeshesGetCall) Header() http.Header
- func (c *ProjectsLocationsMeshesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMeshesGetCall
- type ProjectsLocationsMeshesGetIamPolicyCall
- func (c *ProjectsLocationsMeshesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsMeshesGetIamPolicyCall
- func (c *ProjectsLocationsMeshesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsMeshesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsMeshesGetIamPolicyCall
- func (c *ProjectsLocationsMeshesGetIamPolicyCall) Header() http.Header
- func (c *ProjectsLocationsMeshesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsMeshesGetIamPolicyCall
- func (c *ProjectsLocationsMeshesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsMeshesGetIamPolicyCall
- type ProjectsLocationsMeshesListCall
- func (c *ProjectsLocationsMeshesListCall) Context(ctx context.Context) *ProjectsLocationsMeshesListCall
- func (c *ProjectsLocationsMeshesListCall) Do(opts ...googleapi.CallOption) (*ListMeshesResponse, error)
- func (c *ProjectsLocationsMeshesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMeshesListCall
- func (c *ProjectsLocationsMeshesListCall) Header() http.Header
- func (c *ProjectsLocationsMeshesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMeshesListCall
- func (c *ProjectsLocationsMeshesListCall) PageSize(pageSize int64) *ProjectsLocationsMeshesListCall
- func (c *ProjectsLocationsMeshesListCall) PageToken(pageToken string) *ProjectsLocationsMeshesListCall
- func (c *ProjectsLocationsMeshesListCall) Pages(ctx context.Context, f func(*ListMeshesResponse) error) error
- type ProjectsLocationsMeshesPatchCall
- func (c *ProjectsLocationsMeshesPatchCall) Context(ctx context.Context) *ProjectsLocationsMeshesPatchCall
- func (c *ProjectsLocationsMeshesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsMeshesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMeshesPatchCall
- func (c *ProjectsLocationsMeshesPatchCall) Header() http.Header
- func (c *ProjectsLocationsMeshesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMeshesPatchCall
- type ProjectsLocationsMeshesService
- func (r *ProjectsLocationsMeshesService) Create(parent string, mesh *Mesh) *ProjectsLocationsMeshesCreateCall
- func (r *ProjectsLocationsMeshesService) Delete(name string) *ProjectsLocationsMeshesDeleteCall
- func (r *ProjectsLocationsMeshesService) Get(name string) *ProjectsLocationsMeshesGetCall
- func (r *ProjectsLocationsMeshesService) GetIamPolicy(resource string) *ProjectsLocationsMeshesGetIamPolicyCall
- func (r *ProjectsLocationsMeshesService) List(parent string) *ProjectsLocationsMeshesListCall
- func (r *ProjectsLocationsMeshesService) Patch(name string, mesh *Mesh) *ProjectsLocationsMeshesPatchCall
- func (r *ProjectsLocationsMeshesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsMeshesSetIamPolicyCall
- func (r *ProjectsLocationsMeshesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsMeshesTestIamPermissionsCall
- type ProjectsLocationsMeshesSetIamPolicyCall
- func (c *ProjectsLocationsMeshesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsMeshesSetIamPolicyCall
- func (c *ProjectsLocationsMeshesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsMeshesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsMeshesSetIamPolicyCall
- func (c *ProjectsLocationsMeshesSetIamPolicyCall) Header() http.Header
- type ProjectsLocationsMeshesTestIamPermissionsCall
- func (c *ProjectsLocationsMeshesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsMeshesTestIamPermissionsCall
- func (c *ProjectsLocationsMeshesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsLocationsMeshesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsMeshesTestIamPermissionsCall
- func (c *ProjectsLocationsMeshesTestIamPermissionsCall) Header() http.Header
- type ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
- type ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header
- type ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
- func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
- type ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
- func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Header() http.Header
- func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
- type ProjectsLocationsOperationsService
- func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
- func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall
- func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
- func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
- type ProjectsLocationsService
- type ProjectsLocationsServiceBindingsCreateCall
- func (c *ProjectsLocationsServiceBindingsCreateCall) Context(ctx context.Context) *ProjectsLocationsServiceBindingsCreateCall
- func (c *ProjectsLocationsServiceBindingsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsServiceBindingsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceBindingsCreateCall
- func (c *ProjectsLocationsServiceBindingsCreateCall) Header() http.Header
- func (c *ProjectsLocationsServiceBindingsCreateCall) ServiceBindingId(serviceBindingId string) *ProjectsLocationsServiceBindingsCreateCall
- type ProjectsLocationsServiceBindingsDeleteCall
- func (c *ProjectsLocationsServiceBindingsDeleteCall) Context(ctx context.Context) *ProjectsLocationsServiceBindingsDeleteCall
- func (c *ProjectsLocationsServiceBindingsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsServiceBindingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceBindingsDeleteCall
- func (c *ProjectsLocationsServiceBindingsDeleteCall) Header() http.Header
- type ProjectsLocationsServiceBindingsGetCall
- func (c *ProjectsLocationsServiceBindingsGetCall) Context(ctx context.Context) *ProjectsLocationsServiceBindingsGetCall
- func (c *ProjectsLocationsServiceBindingsGetCall) Do(opts ...googleapi.CallOption) (*ServiceBinding, error)
- func (c *ProjectsLocationsServiceBindingsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceBindingsGetCall
- func (c *ProjectsLocationsServiceBindingsGetCall) Header() http.Header
- func (c *ProjectsLocationsServiceBindingsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsServiceBindingsGetCall
- type ProjectsLocationsServiceBindingsGetIamPolicyCall
- func (c *ProjectsLocationsServiceBindingsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServiceBindingsGetIamPolicyCall
- func (c *ProjectsLocationsServiceBindingsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsServiceBindingsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceBindingsGetIamPolicyCall
- func (c *ProjectsLocationsServiceBindingsGetIamPolicyCall) Header() http.Header
- func (c *ProjectsLocationsServiceBindingsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsServiceBindingsGetIamPolicyCall
- func (c *ProjectsLocationsServiceBindingsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsServiceBindingsGetIamPolicyCall
- type ProjectsLocationsServiceBindingsListCall
- func (c *ProjectsLocationsServiceBindingsListCall) Context(ctx context.Context) *ProjectsLocationsServiceBindingsListCall
- func (c *ProjectsLocationsServiceBindingsListCall) Do(opts ...googleapi.CallOption) (*ListServiceBindingsResponse, error)
- func (c *ProjectsLocationsServiceBindingsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceBindingsListCall
- func (c *ProjectsLocationsServiceBindingsListCall) Header() http.Header
- func (c *ProjectsLocationsServiceBindingsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsServiceBindingsListCall
- func (c *ProjectsLocationsServiceBindingsListCall) PageSize(pageSize int64) *ProjectsLocationsServiceBindingsListCall
- func (c *ProjectsLocationsServiceBindingsListCall) PageToken(pageToken string) *ProjectsLocationsServiceBindingsListCall
- func (c *ProjectsLocationsServiceBindingsListCall) Pages(ctx context.Context, f func(*ListServiceBindingsResponse) error) error
- type ProjectsLocationsServiceBindingsService
- func (r *ProjectsLocationsServiceBindingsService) Create(parent string, servicebinding *ServiceBinding) *ProjectsLocationsServiceBindingsCreateCall
- func (r *ProjectsLocationsServiceBindingsService) Delete(name string) *ProjectsLocationsServiceBindingsDeleteCall
- func (r *ProjectsLocationsServiceBindingsService) Get(name string) *ProjectsLocationsServiceBindingsGetCall
- func (r *ProjectsLocationsServiceBindingsService) GetIamPolicy(resource string) *ProjectsLocationsServiceBindingsGetIamPolicyCall
- func (r *ProjectsLocationsServiceBindingsService) List(parent string) *ProjectsLocationsServiceBindingsListCall
- func (r *ProjectsLocationsServiceBindingsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsServiceBindingsSetIamPolicyCall
- func (r *ProjectsLocationsServiceBindingsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsServiceBindingsTestIamPermissionsCall
- type ProjectsLocationsServiceBindingsSetIamPolicyCall
- func (c *ProjectsLocationsServiceBindingsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServiceBindingsSetIamPolicyCall
- func (c *ProjectsLocationsServiceBindingsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsServiceBindingsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceBindingsSetIamPolicyCall
- func (c *ProjectsLocationsServiceBindingsSetIamPolicyCall) Header() http.Header
- type ProjectsLocationsServiceBindingsTestIamPermissionsCall
- func (c *ProjectsLocationsServiceBindingsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsServiceBindingsTestIamPermissionsCall
- func (c *ProjectsLocationsServiceBindingsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsLocationsServiceBindingsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceBindingsTestIamPermissionsCall
- func (c *ProjectsLocationsServiceBindingsTestIamPermissionsCall) Header() http.Header
- type ProjectsLocationsServiceLbPoliciesCreateCall
- func (c *ProjectsLocationsServiceLbPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesCreateCall
- func (c *ProjectsLocationsServiceLbPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsServiceLbPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesCreateCall
- func (c *ProjectsLocationsServiceLbPoliciesCreateCall) Header() http.Header
- func (c *ProjectsLocationsServiceLbPoliciesCreateCall) ServiceLbPolicyId(serviceLbPolicyId string) *ProjectsLocationsServiceLbPoliciesCreateCall
- type ProjectsLocationsServiceLbPoliciesDeleteCall
- func (c *ProjectsLocationsServiceLbPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesDeleteCall
- func (c *ProjectsLocationsServiceLbPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsServiceLbPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesDeleteCall
- func (c *ProjectsLocationsServiceLbPoliciesDeleteCall) Header() http.Header
- type ProjectsLocationsServiceLbPoliciesGetCall
- func (c *ProjectsLocationsServiceLbPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesGetCall
- func (c *ProjectsLocationsServiceLbPoliciesGetCall) Do(opts ...googleapi.CallOption) (*ServiceLbPolicy, error)
- func (c *ProjectsLocationsServiceLbPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesGetCall
- func (c *ProjectsLocationsServiceLbPoliciesGetCall) Header() http.Header
- func (c *ProjectsLocationsServiceLbPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsServiceLbPoliciesGetCall
- type ProjectsLocationsServiceLbPoliciesGetIamPolicyCall
- func (c *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall
- func (c *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall
- func (c *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) Header() http.Header
- func (c *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall
- func (c *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall
- type ProjectsLocationsServiceLbPoliciesListCall
- func (c *ProjectsLocationsServiceLbPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesListCall
- func (c *ProjectsLocationsServiceLbPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListServiceLbPoliciesResponse, error)
- func (c *ProjectsLocationsServiceLbPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesListCall
- func (c *ProjectsLocationsServiceLbPoliciesListCall) Header() http.Header
- func (c *ProjectsLocationsServiceLbPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsServiceLbPoliciesListCall
- func (c *ProjectsLocationsServiceLbPoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsServiceLbPoliciesListCall
- func (c *ProjectsLocationsServiceLbPoliciesListCall) PageToken(pageToken string) *ProjectsLocationsServiceLbPoliciesListCall
- func (c *ProjectsLocationsServiceLbPoliciesListCall) Pages(ctx context.Context, f func(*ListServiceLbPoliciesResponse) error) error
- type ProjectsLocationsServiceLbPoliciesPatchCall
- func (c *ProjectsLocationsServiceLbPoliciesPatchCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesPatchCall
- func (c *ProjectsLocationsServiceLbPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsServiceLbPoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesPatchCall
- func (c *ProjectsLocationsServiceLbPoliciesPatchCall) Header() http.Header
- func (c *ProjectsLocationsServiceLbPoliciesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsServiceLbPoliciesPatchCall
- type ProjectsLocationsServiceLbPoliciesService
- func (r *ProjectsLocationsServiceLbPoliciesService) Create(parent string, servicelbpolicy *ServiceLbPolicy) *ProjectsLocationsServiceLbPoliciesCreateCall
- func (r *ProjectsLocationsServiceLbPoliciesService) Delete(name string) *ProjectsLocationsServiceLbPoliciesDeleteCall
- func (r *ProjectsLocationsServiceLbPoliciesService) Get(name string) *ProjectsLocationsServiceLbPoliciesGetCall
- func (r *ProjectsLocationsServiceLbPoliciesService) GetIamPolicy(resource string) *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall
- func (r *ProjectsLocationsServiceLbPoliciesService) List(parent string) *ProjectsLocationsServiceLbPoliciesListCall
- func (r *ProjectsLocationsServiceLbPoliciesService) Patch(name string, servicelbpolicy *ServiceLbPolicy) *ProjectsLocationsServiceLbPoliciesPatchCall
- func (r *ProjectsLocationsServiceLbPoliciesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall
- func (r *ProjectsLocationsServiceLbPoliciesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall
- type ProjectsLocationsServiceLbPoliciesSetIamPolicyCall
- func (c *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall
- func (c *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall
- func (c *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) Header() http.Header
- type ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall
- func (c *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall
- func (c *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall
- func (c *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) Header() http.Header
- type ProjectsLocationsTcpRoutesCreateCall
- func (c *ProjectsLocationsTcpRoutesCreateCall) Context(ctx context.Context) *ProjectsLocationsTcpRoutesCreateCall
- func (c *ProjectsLocationsTcpRoutesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsTcpRoutesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTcpRoutesCreateCall
- func (c *ProjectsLocationsTcpRoutesCreateCall) Header() http.Header
- func (c *ProjectsLocationsTcpRoutesCreateCall) TcpRouteId(tcpRouteId string) *ProjectsLocationsTcpRoutesCreateCall
- type ProjectsLocationsTcpRoutesDeleteCall
- func (c *ProjectsLocationsTcpRoutesDeleteCall) Context(ctx context.Context) *ProjectsLocationsTcpRoutesDeleteCall
- func (c *ProjectsLocationsTcpRoutesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsTcpRoutesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTcpRoutesDeleteCall
- func (c *ProjectsLocationsTcpRoutesDeleteCall) Header() http.Header
- type ProjectsLocationsTcpRoutesGetCall
- func (c *ProjectsLocationsTcpRoutesGetCall) Context(ctx context.Context) *ProjectsLocationsTcpRoutesGetCall
- func (c *ProjectsLocationsTcpRoutesGetCall) Do(opts ...googleapi.CallOption) (*TcpRoute, error)
- func (c *ProjectsLocationsTcpRoutesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTcpRoutesGetCall
- func (c *ProjectsLocationsTcpRoutesGetCall) Header() http.Header
- func (c *ProjectsLocationsTcpRoutesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTcpRoutesGetCall
- type ProjectsLocationsTcpRoutesListCall
- func (c *ProjectsLocationsTcpRoutesListCall) Context(ctx context.Context) *ProjectsLocationsTcpRoutesListCall
- func (c *ProjectsLocationsTcpRoutesListCall) Do(opts ...googleapi.CallOption) (*ListTcpRoutesResponse, error)
- func (c *ProjectsLocationsTcpRoutesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTcpRoutesListCall
- func (c *ProjectsLocationsTcpRoutesListCall) Header() http.Header
- func (c *ProjectsLocationsTcpRoutesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsTcpRoutesListCall
- func (c *ProjectsLocationsTcpRoutesListCall) PageSize(pageSize int64) *ProjectsLocationsTcpRoutesListCall
- func (c *ProjectsLocationsTcpRoutesListCall) PageToken(pageToken string) *ProjectsLocationsTcpRoutesListCall
- func (c *ProjectsLocationsTcpRoutesListCall) Pages(ctx context.Context, f func(*ListTcpRoutesResponse) error) error
- type ProjectsLocationsTcpRoutesPatchCall
- func (c *ProjectsLocationsTcpRoutesPatchCall) Context(ctx context.Context) *ProjectsLocationsTcpRoutesPatchCall
- func (c *ProjectsLocationsTcpRoutesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsTcpRoutesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTcpRoutesPatchCall
- func (c *ProjectsLocationsTcpRoutesPatchCall) Header() http.Header
- func (c *ProjectsLocationsTcpRoutesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTcpRoutesPatchCall
- type ProjectsLocationsTcpRoutesService
- func (r *ProjectsLocationsTcpRoutesService) Create(parent string, tcproute *TcpRoute) *ProjectsLocationsTcpRoutesCreateCall
- func (r *ProjectsLocationsTcpRoutesService) Delete(name string) *ProjectsLocationsTcpRoutesDeleteCall
- func (r *ProjectsLocationsTcpRoutesService) Get(name string) *ProjectsLocationsTcpRoutesGetCall
- func (r *ProjectsLocationsTcpRoutesService) List(parent string) *ProjectsLocationsTcpRoutesListCall
- func (r *ProjectsLocationsTcpRoutesService) Patch(name string, tcproute *TcpRoute) *ProjectsLocationsTcpRoutesPatchCall
- type ProjectsLocationsTlsRoutesCreateCall
- func (c *ProjectsLocationsTlsRoutesCreateCall) Context(ctx context.Context) *ProjectsLocationsTlsRoutesCreateCall
- func (c *ProjectsLocationsTlsRoutesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsTlsRoutesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTlsRoutesCreateCall
- func (c *ProjectsLocationsTlsRoutesCreateCall) Header() http.Header
- func (c *ProjectsLocationsTlsRoutesCreateCall) TlsRouteId(tlsRouteId string) *ProjectsLocationsTlsRoutesCreateCall
- type ProjectsLocationsTlsRoutesDeleteCall
- func (c *ProjectsLocationsTlsRoutesDeleteCall) Context(ctx context.Context) *ProjectsLocationsTlsRoutesDeleteCall
- func (c *ProjectsLocationsTlsRoutesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsTlsRoutesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTlsRoutesDeleteCall
- func (c *ProjectsLocationsTlsRoutesDeleteCall) Header() http.Header
- type ProjectsLocationsTlsRoutesGetCall
- func (c *ProjectsLocationsTlsRoutesGetCall) Context(ctx context.Context) *ProjectsLocationsTlsRoutesGetCall
- func (c *ProjectsLocationsTlsRoutesGetCall) Do(opts ...googleapi.CallOption) (*TlsRoute, error)
- func (c *ProjectsLocationsTlsRoutesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTlsRoutesGetCall
- func (c *ProjectsLocationsTlsRoutesGetCall) Header() http.Header
- func (c *ProjectsLocationsTlsRoutesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTlsRoutesGetCall
- type ProjectsLocationsTlsRoutesListCall
- func (c *ProjectsLocationsTlsRoutesListCall) Context(ctx context.Context) *ProjectsLocationsTlsRoutesListCall
- func (c *ProjectsLocationsTlsRoutesListCall) Do(opts ...googleapi.CallOption) (*ListTlsRoutesResponse, error)
- func (c *ProjectsLocationsTlsRoutesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTlsRoutesListCall
- func (c *ProjectsLocationsTlsRoutesListCall) Header() http.Header
- func (c *ProjectsLocationsTlsRoutesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsTlsRoutesListCall
- func (c *ProjectsLocationsTlsRoutesListCall) PageSize(pageSize int64) *ProjectsLocationsTlsRoutesListCall
- func (c *ProjectsLocationsTlsRoutesListCall) PageToken(pageToken string) *ProjectsLocationsTlsRoutesListCall
- func (c *ProjectsLocationsTlsRoutesListCall) Pages(ctx context.Context, f func(*ListTlsRoutesResponse) error) error
- type ProjectsLocationsTlsRoutesPatchCall
- func (c *ProjectsLocationsTlsRoutesPatchCall) Context(ctx context.Context) *ProjectsLocationsTlsRoutesPatchCall
- func (c *ProjectsLocationsTlsRoutesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsTlsRoutesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTlsRoutesPatchCall
- func (c *ProjectsLocationsTlsRoutesPatchCall) Header() http.Header
- func (c *ProjectsLocationsTlsRoutesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTlsRoutesPatchCall
- type ProjectsLocationsTlsRoutesService
- func (r *ProjectsLocationsTlsRoutesService) Create(parent string, tlsroute *TlsRoute) *ProjectsLocationsTlsRoutesCreateCall
- func (r *ProjectsLocationsTlsRoutesService) Delete(name string) *ProjectsLocationsTlsRoutesDeleteCall
- func (r *ProjectsLocationsTlsRoutesService) Get(name string) *ProjectsLocationsTlsRoutesGetCall
- func (r *ProjectsLocationsTlsRoutesService) List(parent string) *ProjectsLocationsTlsRoutesListCall
- func (r *ProjectsLocationsTlsRoutesService) Patch(name string, tlsroute *TlsRoute) *ProjectsLocationsTlsRoutesPatchCall
- type ProjectsService
- type Service
- type ServiceBinding
- type ServiceLbPolicy
- type ServiceLbPolicyAutoCapacityDrain
- type ServiceLbPolicyFailoverConfig
- type SetIamPolicyRequest
- type Status
- type TcpRoute
- type TcpRouteRouteAction
- type TcpRouteRouteDestination
- type TcpRouteRouteMatch
- type TcpRouteRouteRule
- type TestIamPermissionsRequest
- type TestIamPermissionsResponse
- type TlsRoute
- type TlsRouteRouteAction
- type TlsRouteRouteDestination
- type TlsRouteRouteMatch
- type TlsRouteRouteRule
- type TrafficPortSelector
Constants ¶
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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AuditLogConfigs") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ExemptedMembers") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
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 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`. * // `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. 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`. 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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Binding: Associates `members`, or principals, with a `role`.
func (*Binding) MarshalJSON ¶
type CancelOperationRequest ¶
type CancelOperationRequest struct { }
CancelOperationRequest: The request message for Operations.CancelOperation.
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 EndpointMatcher ¶
type EndpointMatcher struct { // MetadataLabelMatcher: The matcher is based on node metadata presented // by xDS clients. MetadataLabelMatcher *MetadataLabelMatcher `json:"metadataLabelMatcher,omitempty"` // ForceSendFields is a list of field names (e.g. // "MetadataLabelMatcher") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MetadataLabelMatcher") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
EndpointMatcher: A definition of a matcher that selects endpoints to which the policies should be applied.
func (*EndpointMatcher) MarshalJSON ¶
func (s *EndpointMatcher) MarshalJSON() ([]byte, error)
type EndpointPolicy ¶
type EndpointPolicy struct { // AuthorizationPolicy: Optional. This field specifies the URL of // AuthorizationPolicy resource that applies authorization policies to // the inbound traffic at the matched endpoints. Refer to Authorization. // If this field is not specified, authorization is disabled(no authz // checks) for this endpoint. AuthorizationPolicy string `json:"authorizationPolicy,omitempty"` // ClientTlsPolicy: Optional. A URL referring to a ClientTlsPolicy // resource. ClientTlsPolicy can be set to specify the authentication // for traffic from the proxy to the actual endpoints. More // specifically, it is applied to the outgoing traffic from the proxy to // the endpoint. This is typically used for sidecar model where the // proxy identifies itself as endpoint to the control plane, with the // connection between sidecar and endpoint requiring authentication. If // this field is not set, authentication is disabled(open). Applicable // only when EndpointPolicyType is SIDECAR_PROXY. ClientTlsPolicy string `json:"clientTlsPolicy,omitempty"` // CreateTime: Output only. The timestamp when the resource was created. CreateTime string `json:"createTime,omitempty"` // Description: Optional. A free-text description of the resource. Max // length 1024 characters. Description string `json:"description,omitempty"` // EndpointMatcher: Required. A matcher that selects endpoints to which // the policies should be applied. EndpointMatcher *EndpointMatcher `json:"endpointMatcher,omitempty"` // Labels: Optional. Set of label tags associated with the // EndpointPolicy resource. Labels map[string]string `json:"labels,omitempty"` // Name: Required. Name of the EndpointPolicy resource. It matches // pattern // `projects/{project}/locations/global/endpointPolicies/{endpoint_policy // }`. Name string `json:"name,omitempty"` // ServerTlsPolicy: Optional. A URL referring to ServerTlsPolicy // resource. ServerTlsPolicy is used to determine the authentication // policy to be applied to terminate the inbound traffic at the // identified backends. If this field is not set, authentication is // disabled(open) for this endpoint. ServerTlsPolicy string `json:"serverTlsPolicy,omitempty"` // TrafficPortSelector: Optional. Port selector for the (matched) // endpoints. If no port selector is provided, the matched config is // applied to all ports. TrafficPortSelector *TrafficPortSelector `json:"trafficPortSelector,omitempty"` // Type: Required. The type of endpoint policy. This is primarily used // to validate the configuration. // // Possible values: // "ENDPOINT_POLICY_TYPE_UNSPECIFIED" - Default value. Must not be // used. // "SIDECAR_PROXY" - Represents a proxy deployed as a sidecar. // "GRPC_SERVER" - Represents a proxyless gRPC backend. Type string `json:"type,omitempty"` // UpdateTime: Output only. The timestamp when the resource was updated. 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. "AuthorizationPolicy") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AuthorizationPolicy") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
EndpointPolicy: EndpointPolicy is a resource that helps apply desired configuration on the endpoints that match specific criteria. For example, this resource can be used to apply "authentication config" an all endpoints that serve on port 8080.
func (*EndpointPolicy) MarshalJSON ¶
func (s *EndpointPolicy) MarshalJSON() ([]byte, error)
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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
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 ¶
type ExtensionChain ¶
type ExtensionChain struct { // Extensions: Required. A set of extensions to execute for the matching // request. At least one extension is required. Up to 3 extensions can // be defined for each extension chain for `LbTrafficExtension` // resource. `LbRouteExtension` chains are limited to 1 extension per // extension chain. Extensions []*ExtensionChainExtension `json:"extensions,omitempty"` // MatchCondition: Required. Conditions under which this chain is // invoked for a request. MatchCondition *ExtensionChainMatchCondition `json:"matchCondition,omitempty"` // Name: Required. The name for this extension chain. The name is logged // as part of the HTTP request logs. The name must conform with // RFC-1034, is restricted to lower-cased letters, numbers and hyphens, // and can have a maximum length of 63 characters. Additionally, the // first character must be a letter and the last a letter or a number. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Extensions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Extensions") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ExtensionChain: A single extension chain wrapper that contains the match conditions and extensions to execute.
func (*ExtensionChain) MarshalJSON ¶
func (s *ExtensionChain) MarshalJSON() ([]byte, error)
type ExtensionChainExtension ¶
type ExtensionChainExtension struct { // Authority: Required. The `:authority` header in the gRPC request sent // from Envoy to the extension service. Authority string `json:"authority,omitempty"` // FailOpen: Optional. Determines how the proxy behaves if the call to // the extension fails or times out. When set to `TRUE`, request or // response processing continues without error. Any subsequent // extensions in the extension chain are also executed. When set to // `FALSE`: * If response headers have not been delivered to the // downstream client, a generic 500 error is returned to the client. The // error response can be tailored by configuring a custom error response // in the load balancer. * If response headers have been delivered, then // the HTTP stream to the downstream client is reset. Default is // `FALSE`. FailOpen bool `json:"failOpen,omitempty"` // ForwardHeaders: Optional. List of the HTTP headers to forward to the // extension (from the client or backend). If omitted, all headers are // sent. Each element is a string indicating the header name. ForwardHeaders []string `json:"forwardHeaders,omitempty"` // Name: Required. The name for this extension. The name is logged as // part of the HTTP request logs. The name must conform with RFC-1034, // is restricted to lower-cased letters, numbers and hyphens, and can // have a maximum length of 63 characters. Additionally, the first // character must be a letter and the last a letter or a number. Name string `json:"name,omitempty"` // Service: Required. The reference to the service that runs the // extension. Must be a reference to a backend service // (https://cloud.google.com/compute/docs/reference/rest/v1/backendServices). Service string `json:"service,omitempty"` // SupportedEvents: Optional. A set of events during request or response // processing for which this extension is called. This field is required // for the `LbTrafficExtension` resource. It's not relevant for the // `LbRouteExtension` resource. // // Possible values: // "EVENT_TYPE_UNSPECIFIED" - Unspecified value. Do not use. // "REQUEST_HEADERS" - If included in `supported_events`, the // extension is called when the HTTP request headers arrive. // "REQUEST_BODY" - If included in `supported_events`, the extension // is called when the HTTP request body arrives. // "RESPONSE_HEADERS" - If included in `supported_events`, the // extension is called when the HTTP response headers arrive. // "RESPONSE_BODY" - If included in `supported_events`, the extension // is called when the HTTP response body arrives. SupportedEvents []string `json:"supportedEvents,omitempty"` // Timeout: Required. Specifies the timeout for each individual message // on the stream. The timeout must be between 10-1000 milliseconds. Timeout string `json:"timeout,omitempty"` // ForceSendFields is a list of field names (e.g. "Authority") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Authority") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ExtensionChainExtension: A single extension in the chain to execute for the matching request.
func (*ExtensionChainExtension) MarshalJSON ¶
func (s *ExtensionChainExtension) MarshalJSON() ([]byte, error)
type ExtensionChainMatchCondition ¶
type ExtensionChainMatchCondition struct { // CelExpression: Required. A Common Expression Language (CEL) // expression that is used to match requests for which the extension // chain is executed. CelExpression string `json:"celExpression,omitempty"` // ForceSendFields is a list of field names (e.g. "CelExpression") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CelExpression") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ExtensionChainMatchCondition: Conditions under which this chain is invoked for a request.
func (*ExtensionChainMatchCondition) MarshalJSON ¶
func (s *ExtensionChainMatchCondition) MarshalJSON() ([]byte, error)
type Gateway ¶
type Gateway struct { // Addresses: Optional. Zero or one IPv4 or IPv6 address on which the // Gateway will receive the traffic. When no address is provided, an IP // from the subnetwork is allocated This field only applies to gateways // of type 'SECURE_WEB_GATEWAY'. Gateways of type 'OPEN_MESH' listen on // 0.0.0.0 for IPv4 and :: for IPv6. Addresses []string `json:"addresses,omitempty"` // CertificateUrls: Optional. A fully-qualified Certificates URL // reference. The proxy presents a Certificate (selected based on SNI) // when establishing a TLS connection. This feature only applies to // gateways of type 'SECURE_WEB_GATEWAY'. CertificateUrls []string `json:"certificateUrls,omitempty"` // CreateTime: Output only. The timestamp when the resource was created. CreateTime string `json:"createTime,omitempty"` // Description: Optional. A free-text description of the resource. Max // length 1024 characters. Description string `json:"description,omitempty"` // GatewaySecurityPolicy: Optional. A fully-qualified // GatewaySecurityPolicy URL reference. Defines how a server should // apply security policy to inbound (VM to Proxy) initiated connections. // For example: // `projects/*/locations/*/gatewaySecurityPolicies/swg-policy`. This // policy is specific to gateways of type 'SECURE_WEB_GATEWAY'. GatewaySecurityPolicy string `json:"gatewaySecurityPolicy,omitempty"` // Labels: Optional. Set of label tags associated with the Gateway // resource. Labels map[string]string `json:"labels,omitempty"` // Name: Required. Name of the Gateway resource. It matches pattern // `projects/*/locations/*/gateways/`. Name string `json:"name,omitempty"` // Network: Optional. The relative resource name identifying the VPC // network that is using this configuration. For example: // `projects/*/global/networks/network-1`. Currently, this field is // specific to gateways of type 'SECURE_WEB_GATEWAY'. Network string `json:"network,omitempty"` // Ports: Required. One or more port numbers (1-65535), on which the // Gateway will receive traffic. The proxy binds to the specified ports. // Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. Gateways // of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and // support multiple ports. Ports []int64 `json:"ports,omitempty"` // Scope: Optional. Scope determines how configuration across multiple // Gateway instances are merged. The configuration for multiple Gateway // instances with the same scope will be merged as presented as a single // coniguration to the proxy/load balancer. Max length 64 characters. // Scope should start with a letter and can only have letters, numbers, // hyphens. Scope string `json:"scope,omitempty"` // SelfLink: Output only. Server-defined URL of this resource SelfLink string `json:"selfLink,omitempty"` // ServerTlsPolicy: Optional. A fully-qualified ServerTLSPolicy URL // reference. Specifies how TLS traffic is terminated. If empty, TLS // termination is disabled. ServerTlsPolicy string `json:"serverTlsPolicy,omitempty"` // Subnetwork: Optional. The relative resource name identifying the // subnetwork in which this SWG is allocated. For example: // `projects/*/regions/us-central1/subnetworks/network-1` Currently, // this field is specific to gateways of type 'SECURE_WEB_GATEWAY". Subnetwork string `json:"subnetwork,omitempty"` // Type: Immutable. The type of the customer managed gateway. This field // is required. If unspecified, an error is returned. // // Possible values: // "TYPE_UNSPECIFIED" - The type of the customer managed gateway is // unspecified. // "OPEN_MESH" - The type of the customer managed gateway is // TrafficDirector Open Mesh. // "SECURE_WEB_GATEWAY" - The type of the customer managed gateway is // SecureWebGateway (SWG). Type string `json:"type,omitempty"` // UpdateTime: Output only. The timestamp when the resource was updated. 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. "Addresses") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Addresses") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Gateway: Gateway represents the configuration for a proxy, typically a load balancer. It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway.
func (*Gateway) MarshalJSON ¶
type GrpcRoute ¶
type GrpcRoute struct { // CreateTime: Output only. The timestamp when the resource was created. CreateTime string `json:"createTime,omitempty"` // Description: Optional. A free-text description of the resource. Max // length 1024 characters. Description string `json:"description,omitempty"` // Gateways: Optional. Gateways defines a list of gateways this // GrpcRoute is attached to, as one of the routing rules to route the // requests served by the gateway. Each gateway reference should match // the pattern: `projects/*/locations/global/gateways/` Gateways []string `json:"gateways,omitempty"` // Hostnames: Required. Service hostnames with an optional port for // which this route describes traffic. Format: [:] Hostname is the fully // qualified domain name of a network host. This matches the RFC 1123 // definition of a hostname with 2 notable exceptions: - IPs are not // allowed. - A hostname may be prefixed with a wildcard label (`*.`). // The wildcard label must appear by itself as the first label. Hostname // can be "precise" which is a domain name without the terminating dot // of a network host (e.g. `foo.example.com`) or "wildcard", which is a // domain name prefixed with a single wildcard label (e.g. // `*.example.com`). Note that as per RFC1035 and RFC1123, a label must // consist of lower case alphanumeric characters or '-', and must start // and end with an alphanumeric character. No other punctuation is // allowed. The routes associated with a Mesh or Gateway must have // unique hostnames. If you attempt to attach multiple routes with // conflicting hostnames, the configuration will be rejected. For // example, while it is acceptable for routes for the hostnames // `*.foo.bar.com` and `*.bar.com` to be associated with the same route, // it is not possible to associate two routes both with `*.bar.com` or // both with `bar.com`. If a port is specified, then gRPC clients must // use the channel URI with the port to match this rule (i.e. // "xds:///service:123"), otherwise they must supply the URI without a // port (i.e. "xds:///service"). Hostnames []string `json:"hostnames,omitempty"` // Labels: Optional. Set of label tags associated with the GrpcRoute // resource. Labels map[string]string `json:"labels,omitempty"` // Meshes: Optional. Meshes defines a list of meshes this GrpcRoute is // attached to, as one of the routing rules to route the requests served // by the mesh. Each mesh reference should match the pattern: // `projects/*/locations/global/meshes/` Meshes []string `json:"meshes,omitempty"` // Name: Required. Name of the GrpcRoute resource. It matches pattern // `projects/*/locations/global/grpcRoutes/` Name string `json:"name,omitempty"` // Rules: Required. A list of detailed rules defining how to route // traffic. Within a single GrpcRoute, the GrpcRoute.RouteAction // associated with the first matching GrpcRoute.RouteRule will be // executed. At least one rule must be supplied. Rules []*GrpcRouteRouteRule `json:"rules,omitempty"` // SelfLink: Output only. Server-defined URL of this resource SelfLink string `json:"selfLink,omitempty"` // UpdateTime: Output only. The timestamp when the resource was updated. 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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreateTime") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GrpcRoute: GrpcRoute is the resource defining how gRPC traffic routed by a Mesh or Gateway resource is routed.
func (*GrpcRoute) MarshalJSON ¶
type GrpcRouteDestination ¶
type GrpcRouteDestination struct { // ServiceName: Required. The URL of a destination service to which to // route traffic. Must refer to either a BackendService or // ServiceDirectoryService. ServiceName string `json:"serviceName,omitempty"` // Weight: Optional. Specifies the proportion of requests forwarded to // the backend referenced by the serviceName field. This is computed as: // - weight/Sum(weights in this destination list). For non-zero values, // there may be some epsilon from the exact proportion defined here // depending on the precision an implementation supports. If only one // serviceName is specified and it has a weight greater than 0, 100% of // the traffic is forwarded to that backend. If weights are specified // for any one service name, they need to be specified for all of them. // If weights are unspecified for all services, then, traffic is // distributed in equal proportions to all of them. Weight int64 `json:"weight,omitempty"` // ForceSendFields is a list of field names (e.g. "ServiceName") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ServiceName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GrpcRouteDestination: The destination to which traffic will be routed.
func (*GrpcRouteDestination) MarshalJSON ¶
func (s *GrpcRouteDestination) MarshalJSON() ([]byte, error)
type GrpcRouteFaultInjectionPolicy ¶
type GrpcRouteFaultInjectionPolicy struct { // Abort: The specification for aborting to client requests. Abort *GrpcRouteFaultInjectionPolicyAbort `json:"abort,omitempty"` // Delay: The specification for injecting delay to client requests. Delay *GrpcRouteFaultInjectionPolicyDelay `json:"delay,omitempty"` // ForceSendFields is a list of field names (e.g. "Abort") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Abort") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GrpcRouteFaultInjectionPolicy: The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced on a percentage of requests before sending those requests to the destination service. Similarly requests from clients can be aborted by for a percentage of requests.
func (*GrpcRouteFaultInjectionPolicy) MarshalJSON ¶
func (s *GrpcRouteFaultInjectionPolicy) MarshalJSON() ([]byte, error)
type GrpcRouteFaultInjectionPolicyAbort ¶
type GrpcRouteFaultInjectionPolicyAbort struct { // HttpStatus: The HTTP status code used to abort the request. The value // must be between 200 and 599 inclusive. HttpStatus int64 `json:"httpStatus,omitempty"` // Percentage: The percentage of traffic which will be aborted. The // value must be between [0, 100] Percentage int64 `json:"percentage,omitempty"` // ForceSendFields is a list of field names (e.g. "HttpStatus") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "HttpStatus") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GrpcRouteFaultInjectionPolicyAbort: Specification of how client requests are aborted as part of fault injection before being sent to a destination.
func (*GrpcRouteFaultInjectionPolicyAbort) MarshalJSON ¶
func (s *GrpcRouteFaultInjectionPolicyAbort) MarshalJSON() ([]byte, error)
type GrpcRouteFaultInjectionPolicyDelay ¶
type GrpcRouteFaultInjectionPolicyDelay struct { // FixedDelay: Specify a fixed delay before forwarding the request. FixedDelay string `json:"fixedDelay,omitempty"` // Percentage: The percentage of traffic on which delay will be // injected. The value must be between [0, 100] Percentage int64 `json:"percentage,omitempty"` // ForceSendFields is a list of field names (e.g. "FixedDelay") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FixedDelay") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GrpcRouteFaultInjectionPolicyDelay: Specification of how client requests are delayed as part of fault injection before being sent to a destination.
func (*GrpcRouteFaultInjectionPolicyDelay) MarshalJSON ¶
func (s *GrpcRouteFaultInjectionPolicyDelay) MarshalJSON() ([]byte, error)
type GrpcRouteHeaderMatch ¶
type GrpcRouteHeaderMatch struct { // Key: Required. The key of the header. Key string `json:"key,omitempty"` // Type: Optional. Specifies how to match against the value of the // header. If not specified, a default value of EXACT is used. // // Possible values: // "TYPE_UNSPECIFIED" - Unspecified. // "EXACT" - Will only match the exact value provided. // "REGULAR_EXPRESSION" - Will match paths conforming to the prefix // specified by value. RE2 syntax is supported. Type string `json:"type,omitempty"` // Value: Required. The value of the header. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Key") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GrpcRouteHeaderMatch: A match against a collection of headers.
func (*GrpcRouteHeaderMatch) MarshalJSON ¶
func (s *GrpcRouteHeaderMatch) MarshalJSON() ([]byte, error)
type GrpcRouteMethodMatch ¶
type GrpcRouteMethodMatch struct { // CaseSensitive: Optional. Specifies that matches are case sensitive. // The default value is true. case_sensitive must not be used with a // type of REGULAR_EXPRESSION. CaseSensitive bool `json:"caseSensitive,omitempty"` // GrpcMethod: Required. Name of the method to match against. If // unspecified, will match all methods. GrpcMethod string `json:"grpcMethod,omitempty"` // GrpcService: Required. Name of the service to match against. If // unspecified, will match all services. GrpcService string `json:"grpcService,omitempty"` // Type: Optional. Specifies how to match against the name. If not // specified, a default value of "EXACT" is used. // // Possible values: // "TYPE_UNSPECIFIED" - Unspecified. // "EXACT" - Will only match the exact name provided. // "REGULAR_EXPRESSION" - Will interpret grpc_method and grpc_service // as regexes. RE2 syntax is supported. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "CaseSensitive") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CaseSensitive") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GrpcRouteMethodMatch: Specifies a match against a method.
func (*GrpcRouteMethodMatch) MarshalJSON ¶
func (s *GrpcRouteMethodMatch) MarshalJSON() ([]byte, error)
type GrpcRouteRetryPolicy ¶
type GrpcRouteRetryPolicy struct { // NumRetries: Specifies the allowed number of retries. This number must // be > 0. If not specified, default to 1. NumRetries int64 `json:"numRetries,omitempty"` // RetryConditions: - connect-failure: Router will retry on failures // connecting to Backend Services, for example due to connection // timeouts. - refused-stream: Router will retry if the backend service // resets the stream with a REFUSED_STREAM error code. This reset type // indicates that it is safe to retry. - cancelled: Router will retry if // the gRPC status code in the response header is set to cancelled - // deadline-exceeded: Router will retry if the gRPC status code in the // response header is set to deadline-exceeded - resource-exhausted: // Router will retry if the gRPC status code in the response header is // set to resource-exhausted - unavailable: Router will retry if the // gRPC status code in the response header is set to unavailable RetryConditions []string `json:"retryConditions,omitempty"` // ForceSendFields is a list of field names (e.g. "NumRetries") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NumRetries") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GrpcRouteRetryPolicy: The specifications for retries.
func (*GrpcRouteRetryPolicy) MarshalJSON ¶
func (s *GrpcRouteRetryPolicy) MarshalJSON() ([]byte, error)
type GrpcRouteRouteAction ¶
type GrpcRouteRouteAction struct { // Destinations: Optional. The destination services to which traffic // should be forwarded. If multiple destinations are specified, traffic // will be split between Backend Service(s) according to the weight // field of these destinations. Destinations []*GrpcRouteDestination `json:"destinations,omitempty"` // FaultInjectionPolicy: Optional. The specification for fault injection // introduced into traffic to test the resiliency of clients to // destination service failure. As part of fault injection, when clients // send requests to a destination, delays can be introduced on a // percentage of requests before sending those requests to the // destination service. Similarly requests from clients can be aborted // by for a percentage of requests. timeout and retry_policy will be // ignored by clients that are configured with a fault_injection_policy FaultInjectionPolicy *GrpcRouteFaultInjectionPolicy `json:"faultInjectionPolicy,omitempty"` // RetryPolicy: Optional. Specifies the retry policy associated with // this route. RetryPolicy *GrpcRouteRetryPolicy `json:"retryPolicy,omitempty"` // StatefulSessionAffinity: Optional. Specifies cookie-based stateful // session affinity. StatefulSessionAffinity *GrpcRouteStatefulSessionAffinityPolicy `json:"statefulSessionAffinity,omitempty"` // Timeout: Optional. Specifies the timeout for selected route. Timeout // is computed from the time the request has been fully processed (i.e. // end of stream) up until the response has been completely processed. // Timeout includes all retries. Timeout string `json:"timeout,omitempty"` // ForceSendFields is a list of field names (e.g. "Destinations") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Destinations") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GrpcRouteRouteAction: Specifies how to route matched traffic.
func (*GrpcRouteRouteAction) MarshalJSON ¶
func (s *GrpcRouteRouteAction) MarshalJSON() ([]byte, error)
type GrpcRouteRouteMatch ¶
type GrpcRouteRouteMatch struct { // Headers: Optional. Specifies a collection of headers to match. Headers []*GrpcRouteHeaderMatch `json:"headers,omitempty"` // Method: Optional. A gRPC method to match against. If this field is // empty or omitted, will match all methods. Method *GrpcRouteMethodMatch `json:"method,omitempty"` // ForceSendFields is a list of field names (e.g. "Headers") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Headers") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GrpcRouteRouteMatch: Criteria for matching traffic. A RouteMatch will be considered to match when all supplied fields match.
func (*GrpcRouteRouteMatch) MarshalJSON ¶
func (s *GrpcRouteRouteMatch) MarshalJSON() ([]byte, error)
type GrpcRouteRouteRule ¶
type GrpcRouteRouteRule struct { // Action: Required. A detailed rule defining how to route traffic. This // field is required. Action *GrpcRouteRouteAction `json:"action,omitempty"` // Matches: Optional. Matches define conditions used for matching the // rule against incoming gRPC requests. Each match is independent, i.e. // this rule will be matched if ANY one of the matches is satisfied. If // no matches field is specified, this rule will unconditionally match // traffic. Matches []*GrpcRouteRouteMatch `json:"matches,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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Action") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GrpcRouteRouteRule: Describes how to route traffic.
func (*GrpcRouteRouteRule) MarshalJSON ¶
func (s *GrpcRouteRouteRule) MarshalJSON() ([]byte, error)
type GrpcRouteStatefulSessionAffinityPolicy ¶
type GrpcRouteStatefulSessionAffinityPolicy struct { // CookieTtl: Required. The cookie TTL value for the Set-Cookie header // generated by the data plane. The lifetime of the cookie may be set to // a value from 1 to 86400 seconds (24 hours) inclusive. CookieTtl string `json:"cookieTtl,omitempty"` // ForceSendFields is a list of field names (e.g. "CookieTtl") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CookieTtl") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GrpcRouteStatefulSessionAffinityPolicy: The specification for cookie-based stateful session affinity where the date plane supplies a “session cookie” with the name "GSSA" which encodes a specific destination host and each request containing that cookie will be directed to that host as long as the destination host remains up and healthy. The gRPC proxyless mesh library or sidecar proxy will manage the session cookie but the client application code is responsible for copying the cookie from each RPC in the session to the next.
func (*GrpcRouteStatefulSessionAffinityPolicy) MarshalJSON ¶
func (s *GrpcRouteStatefulSessionAffinityPolicy) MarshalJSON() ([]byte, error)
type HttpRoute ¶
type HttpRoute struct { // CreateTime: Output only. The timestamp when the resource was created. CreateTime string `json:"createTime,omitempty"` // Description: Optional. A free-text description of the resource. Max // length 1024 characters. Description string `json:"description,omitempty"` // Gateways: Optional. Gateways defines a list of gateways this // HttpRoute is attached to, as one of the routing rules to route the // requests served by the gateway. Each gateway reference should match // the pattern: `projects/*/locations/global/gateways/` Gateways []string `json:"gateways,omitempty"` // Hostnames: Required. Hostnames define a set of hosts that should // match against the HTTP host header to select a HttpRoute to process // the request. Hostname is the fully qualified domain name of a network // host, as defined by RFC 1123 with the exception that: - IPs are not // allowed. - A hostname may be prefixed with a wildcard label (`*.`). // The wildcard label must appear by itself as the first label. Hostname // can be "precise" which is a domain name without the terminating dot // of a network host (e.g. `foo.example.com`) or "wildcard", which is a // domain name prefixed with a single wildcard label (e.g. // `*.example.com`). Note that as per RFC1035 and RFC1123, a label must // consist of lower case alphanumeric characters or '-', and must start // and end with an alphanumeric character. No other punctuation is // allowed. The routes associated with a Mesh or Gateways must have // unique hostnames. If you attempt to attach multiple routes with // conflicting hostnames, the configuration will be rejected. For // example, while it is acceptable for routes for the hostnames // `*.foo.bar.com` and `*.bar.com` to be associated with the same Mesh // (or Gateways under the same scope), it is not possible to associate // two routes both with `*.bar.com` or both with `bar.com`. Hostnames []string `json:"hostnames,omitempty"` // Labels: Optional. Set of label tags associated with the HttpRoute // resource. Labels map[string]string `json:"labels,omitempty"` // Meshes: Optional. Meshes defines a list of meshes this HttpRoute is // attached to, as one of the routing rules to route the requests served // by the mesh. Each mesh reference should match the pattern: // `projects/*/locations/global/meshes/` The attached Mesh should be of // a type SIDECAR Meshes []string `json:"meshes,omitempty"` // Name: Required. Name of the HttpRoute resource. It matches pattern // `projects/*/locations/global/httpRoutes/http_route_name>`. Name string `json:"name,omitempty"` // Rules: Required. Rules that define how traffic is routed and handled. // Rules will be matched sequentially based on the RouteMatch specified // for the rule. Rules []*HttpRouteRouteRule `json:"rules,omitempty"` // SelfLink: Output only. Server-defined URL of this resource SelfLink string `json:"selfLink,omitempty"` // UpdateTime: Output only. The timestamp when the resource was updated. 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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreateTime") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpRoute: HttpRoute is the resource defining how HTTP traffic should be routed by a Mesh or Gateway resource.
func (*HttpRoute) MarshalJSON ¶
type HttpRouteCorsPolicy ¶
type HttpRouteCorsPolicy struct { // AllowCredentials: In response to a preflight request, setting this to // true indicates that the actual request can include user credentials. // This translates to the Access-Control-Allow-Credentials header. // Default value is false. AllowCredentials bool `json:"allowCredentials,omitempty"` // AllowHeaders: Specifies the content for Access-Control-Allow-Headers // header. AllowHeaders []string `json:"allowHeaders,omitempty"` // AllowMethods: Specifies the content for Access-Control-Allow-Methods // header. AllowMethods []string `json:"allowMethods,omitempty"` // AllowOriginRegexes: Specifies the regular expression patterns that // match allowed origins. For regular expression grammar, please see // https://github.com/google/re2/wiki/Syntax. AllowOriginRegexes []string `json:"allowOriginRegexes,omitempty"` // AllowOrigins: Specifies the list of origins that will be allowed to // do CORS requests. An origin is allowed if it matches either an item // in allow_origins or an item in allow_origin_regexes. AllowOrigins []string `json:"allowOrigins,omitempty"` // Disabled: If true, the CORS policy is disabled. The default value is // false, which indicates that the CORS policy is in effect. Disabled bool `json:"disabled,omitempty"` // ExposeHeaders: Specifies the content for // Access-Control-Expose-Headers header. ExposeHeaders []string `json:"exposeHeaders,omitempty"` // MaxAge: Specifies how long result of a preflight request can be // cached in seconds. This translates to the Access-Control-Max-Age // header. MaxAge string `json:"maxAge,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowCredentials") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AllowCredentials") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
HttpRouteCorsPolicy: The Specification for allowing client side cross-origin requests.
func (*HttpRouteCorsPolicy) MarshalJSON ¶
func (s *HttpRouteCorsPolicy) MarshalJSON() ([]byte, error)
type HttpRouteDestination ¶
type HttpRouteDestination struct { // ServiceName: The URL of a BackendService to route traffic to. ServiceName string `json:"serviceName,omitempty"` // Weight: Specifies the proportion of requests forwarded to the backend // referenced by the serviceName field. This is computed as: - // weight/Sum(weights in this destination list). For non-zero values, // there may be some epsilon from the exact proportion defined here // depending on the precision an implementation supports. If only one // serviceName is specified and it has a weight greater than 0, 100% of // the traffic is forwarded to that backend. If weights are specified // for any one service name, they need to be specified for all of them. // If weights are unspecified for all services, then, traffic is // distributed in equal proportions to all of them. Weight int64 `json:"weight,omitempty"` // ForceSendFields is a list of field names (e.g. "ServiceName") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ServiceName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpRouteDestination: Specifications of a destination to which the request should be routed to.
func (*HttpRouteDestination) MarshalJSON ¶
func (s *HttpRouteDestination) MarshalJSON() ([]byte, error)
type HttpRouteFaultInjectionPolicy ¶
type HttpRouteFaultInjectionPolicy struct { // Abort: The specification for aborting to client requests. Abort *HttpRouteFaultInjectionPolicyAbort `json:"abort,omitempty"` // Delay: The specification for injecting delay to client requests. Delay *HttpRouteFaultInjectionPolicyDelay `json:"delay,omitempty"` // ForceSendFields is a list of field names (e.g. "Abort") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Abort") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpRouteFaultInjectionPolicy: The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced by client proxy on a percentage of requests before sending those requests to the destination service. Similarly requests can be aborted by client proxy for a percentage of requests.
func (*HttpRouteFaultInjectionPolicy) MarshalJSON ¶
func (s *HttpRouteFaultInjectionPolicy) MarshalJSON() ([]byte, error)
type HttpRouteFaultInjectionPolicyAbort ¶
type HttpRouteFaultInjectionPolicyAbort struct { // HttpStatus: The HTTP status code used to abort the request. The value // must be between 200 and 599 inclusive. HttpStatus int64 `json:"httpStatus,omitempty"` // Percentage: The percentage of traffic which will be aborted. The // value must be between [0, 100] Percentage int64 `json:"percentage,omitempty"` // ForceSendFields is a list of field names (e.g. "HttpStatus") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "HttpStatus") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpRouteFaultInjectionPolicyAbort: Specification of how client requests are aborted as part of fault injection before being sent to a destination.
func (*HttpRouteFaultInjectionPolicyAbort) MarshalJSON ¶
func (s *HttpRouteFaultInjectionPolicyAbort) MarshalJSON() ([]byte, error)
type HttpRouteFaultInjectionPolicyDelay ¶
type HttpRouteFaultInjectionPolicyDelay struct { // FixedDelay: Specify a fixed delay before forwarding the request. FixedDelay string `json:"fixedDelay,omitempty"` // Percentage: The percentage of traffic on which delay will be // injected. The value must be between [0, 100] Percentage int64 `json:"percentage,omitempty"` // ForceSendFields is a list of field names (e.g. "FixedDelay") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FixedDelay") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpRouteFaultInjectionPolicyDelay: Specification of how client requests are delayed as part of fault injection before being sent to a destination.
func (*HttpRouteFaultInjectionPolicyDelay) MarshalJSON ¶
func (s *HttpRouteFaultInjectionPolicyDelay) MarshalJSON() ([]byte, error)
type HttpRouteHeaderMatch ¶
type HttpRouteHeaderMatch struct { // ExactMatch: The value of the header should match exactly the content // of exact_match. ExactMatch string `json:"exactMatch,omitempty"` // Header: The name of the HTTP header to match against. Header string `json:"header,omitempty"` // InvertMatch: If specified, the match result will be inverted before // checking. Default value is set to false. InvertMatch bool `json:"invertMatch,omitempty"` // PrefixMatch: The value of the header must start with the contents of // prefix_match. PrefixMatch string `json:"prefixMatch,omitempty"` // PresentMatch: A header with header_name must exist. The match takes // place whether or not the header has a value. PresentMatch bool `json:"presentMatch,omitempty"` // RangeMatch: If specified, the rule will match if the request header // value is within the range. RangeMatch *HttpRouteHeaderMatchIntegerRange `json:"rangeMatch,omitempty"` // RegexMatch: The value of the header must match the regular expression // specified in regex_match. For regular expression grammar, please see: // https://github.com/google/re2/wiki/Syntax RegexMatch string `json:"regexMatch,omitempty"` // SuffixMatch: The value of the header must end with the contents of // suffix_match. SuffixMatch string `json:"suffixMatch,omitempty"` // ForceSendFields is a list of field names (e.g. "ExactMatch") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ExactMatch") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpRouteHeaderMatch: Specifies how to select a route rule based on HTTP request headers.
func (*HttpRouteHeaderMatch) MarshalJSON ¶
func (s *HttpRouteHeaderMatch) MarshalJSON() ([]byte, error)
type HttpRouteHeaderMatchIntegerRange ¶
type HttpRouteHeaderMatchIntegerRange struct { // End: End of the range (exclusive) End int64 `json:"end,omitempty"` // Start: Start of the range (inclusive) Start int64 `json:"start,omitempty"` // ForceSendFields is a list of field names (e.g. "End") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "End") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpRouteHeaderMatchIntegerRange: Represents an integer value range.
func (*HttpRouteHeaderMatchIntegerRange) MarshalJSON ¶
func (s *HttpRouteHeaderMatchIntegerRange) MarshalJSON() ([]byte, error)
type HttpRouteHeaderModifier ¶
type HttpRouteHeaderModifier struct { // Add: Add the headers with given map where key is the name of the // header, value is the value of the header. Add map[string]string `json:"add,omitempty"` // Remove: Remove headers (matching by header names) specified in the // list. Remove []string `json:"remove,omitempty"` // Set: Completely overwrite/replace the headers with given map where // key is the name of the header, value is the value of the header. Set map[string]string `json:"set,omitempty"` // ForceSendFields is a list of field names (e.g. "Add") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Add") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpRouteHeaderModifier: The specification for modifying HTTP header in HTTP request and HTTP response.
func (*HttpRouteHeaderModifier) MarshalJSON ¶
func (s *HttpRouteHeaderModifier) MarshalJSON() ([]byte, error)
type HttpRouteQueryParameterMatch ¶
type HttpRouteQueryParameterMatch struct { // ExactMatch: The value of the query parameter must exactly match the // contents of exact_match. Only one of exact_match, regex_match, or // present_match must be set. ExactMatch string `json:"exactMatch,omitempty"` // PresentMatch: Specifies that the QueryParameterMatcher matches if // request contains query parameter, irrespective of whether the // parameter has a value or not. Only one of exact_match, regex_match, // or present_match must be set. PresentMatch bool `json:"presentMatch,omitempty"` // QueryParameter: The name of the query parameter to match. QueryParameter string `json:"queryParameter,omitempty"` // RegexMatch: The value of the query parameter must match the regular // expression specified by regex_match. For regular expression grammar, // please see https://github.com/google/re2/wiki/Syntax Only one of // exact_match, regex_match, or present_match must be set. RegexMatch string `json:"regexMatch,omitempty"` // ForceSendFields is a list of field names (e.g. "ExactMatch") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ExactMatch") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpRouteQueryParameterMatch: Specifications to match a query parameter in the request.
func (*HttpRouteQueryParameterMatch) MarshalJSON ¶
func (s *HttpRouteQueryParameterMatch) MarshalJSON() ([]byte, error)
type HttpRouteRedirect ¶
type HttpRouteRedirect struct { // HostRedirect: The host that will be used in the redirect response // instead of the one that was supplied in the request. HostRedirect string `json:"hostRedirect,omitempty"` // HttpsRedirect: If set to true, the URL scheme in the redirected // request is set to https. If set to false, the URL scheme of the // redirected request will remain the same as that of the request. The // default is set to false. HttpsRedirect bool `json:"httpsRedirect,omitempty"` // PathRedirect: The path that will be used in the redirect response // instead of the one that was supplied in the request. path_redirect // can not be supplied together with prefix_redirect. Supply one alone // or neither. If neither is supplied, the path of the original request // will be used for the redirect. PathRedirect string `json:"pathRedirect,omitempty"` // PortRedirect: The port that will be used in the redirected request // instead of the one that was supplied in the request. PortRedirect int64 `json:"portRedirect,omitempty"` // PrefixRewrite: Indicates that during redirection, the matched prefix // (or path) should be swapped with this value. This option allows URLs // be dynamically created based on the request. PrefixRewrite string `json:"prefixRewrite,omitempty"` // ResponseCode: The HTTP Status code to use for the redirect. // // Possible values: // "RESPONSE_CODE_UNSPECIFIED" - Default value // "MOVED_PERMANENTLY_DEFAULT" - Corresponds to 301. // "FOUND" - Corresponds to 302. // "SEE_OTHER" - Corresponds to 303. // "TEMPORARY_REDIRECT" - Corresponds to 307. In this case, the // request method will be retained. // "PERMANENT_REDIRECT" - Corresponds to 308. In this case, the // request method will be retained. ResponseCode string `json:"responseCode,omitempty"` // StripQuery: if set to true, any accompanying query portion of the // original URL is removed prior to redirecting the request. If set to // false, the query portion of the original URL is retained. The default // is set to false. StripQuery bool `json:"stripQuery,omitempty"` // ForceSendFields is a list of field names (e.g. "HostRedirect") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "HostRedirect") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpRouteRedirect: The specification for redirecting traffic.
func (*HttpRouteRedirect) MarshalJSON ¶
func (s *HttpRouteRedirect) MarshalJSON() ([]byte, error)
type HttpRouteRequestMirrorPolicy ¶
type HttpRouteRequestMirrorPolicy struct { // Destination: The destination the requests will be mirrored to. The // weight of the destination will be ignored. Destination *HttpRouteDestination `json:"destination,omitempty"` // ForceSendFields is a list of field names (e.g. "Destination") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Destination") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpRouteRequestMirrorPolicy: Specifies the policy on how requests are shadowed to a separate mirrored destination service. The proxy does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host/authority header is suffixed with -shadow.
func (*HttpRouteRequestMirrorPolicy) MarshalJSON ¶
func (s *HttpRouteRequestMirrorPolicy) MarshalJSON() ([]byte, error)
type HttpRouteRetryPolicy ¶
type HttpRouteRetryPolicy struct { // NumRetries: Specifies the allowed number of retries. This number must // be > 0. If not specified, default to 1. NumRetries int64 `json:"numRetries,omitempty"` // PerTryTimeout: Specifies a non-zero timeout per retry attempt. PerTryTimeout string `json:"perTryTimeout,omitempty"` // RetryConditions: Specifies one or more conditions when this retry // policy applies. Valid values are: 5xx: Proxy will attempt a retry if // the destination service responds with any 5xx response code, of if // the destination service does not respond at all, example: disconnect, // reset, read timeout, connection failure and refused streams. // gateway-error: Similar to 5xx, but only applies to response codes // 502, 503, 504. reset: Proxy will attempt a retry if the destination // service does not respond at all (disconnect/reset/read timeout) // connect-failure: Proxy will retry on failures connecting to // destination for example due to connection timeouts. retriable-4xx: // Proxy will retry fro retriable 4xx response codes. Currently the only // retriable error supported is 409. refused-stream: Proxy will retry if // the destination resets the stream with a REFUSED_STREAM error code. // This reset type indicates that it is safe to retry. RetryConditions []string `json:"retryConditions,omitempty"` // ForceSendFields is a list of field names (e.g. "NumRetries") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NumRetries") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpRouteRetryPolicy: The specifications for retries.
func (*HttpRouteRetryPolicy) MarshalJSON ¶
func (s *HttpRouteRetryPolicy) MarshalJSON() ([]byte, error)
type HttpRouteRouteAction ¶
type HttpRouteRouteAction struct { // CorsPolicy: The specification for allowing client side cross-origin // requests. CorsPolicy *HttpRouteCorsPolicy `json:"corsPolicy,omitempty"` // Destinations: The destination to which traffic should be forwarded. Destinations []*HttpRouteDestination `json:"destinations,omitempty"` // FaultInjectionPolicy: The specification for fault injection // introduced into traffic to test the resiliency of clients to backend // service failure. As part of fault injection, when clients send // requests to a backend service, delays can be introduced on a // percentage of requests before sending those requests to the backend // service. Similarly requests from clients can be aborted for a // percentage of requests. timeout and retry_policy will be ignored by // clients that are configured with a fault_injection_policy FaultInjectionPolicy *HttpRouteFaultInjectionPolicy `json:"faultInjectionPolicy,omitempty"` // Redirect: If set, the request is directed as configured by this // field. Redirect *HttpRouteRedirect `json:"redirect,omitempty"` // RequestHeaderModifier: The specification for modifying the headers of // a matching request prior to delivery of the request to the // destination. If HeaderModifiers are set on both the Destination and // the RouteAction, they will be merged. Conflicts between the two will // not be resolved on the configuration. RequestHeaderModifier *HttpRouteHeaderModifier `json:"requestHeaderModifier,omitempty"` // RequestMirrorPolicy: Specifies the policy on how requests intended // for the routes destination are shadowed to a separate mirrored // destination. Proxy will not wait for the shadow destination to // respond before returning the response. Prior to sending traffic to // the shadow service, the host/authority header is suffixed with // -shadow. RequestMirrorPolicy *HttpRouteRequestMirrorPolicy `json:"requestMirrorPolicy,omitempty"` // ResponseHeaderModifier: The specification for modifying the headers // of a response prior to sending the response back to the client. If // HeaderModifiers are set on both the Destination and the RouteAction, // they will be merged. Conflicts between the two will not be resolved // on the configuration. ResponseHeaderModifier *HttpRouteHeaderModifier `json:"responseHeaderModifier,omitempty"` // RetryPolicy: Specifies the retry policy associated with this route. RetryPolicy *HttpRouteRetryPolicy `json:"retryPolicy,omitempty"` // StatefulSessionAffinity: Optional. Specifies cookie-based stateful // session affinity. StatefulSessionAffinity *HttpRouteStatefulSessionAffinityPolicy `json:"statefulSessionAffinity,omitempty"` // Timeout: Specifies the timeout for selected route. Timeout is // computed from the time the request has been fully processed (i.e. end // of stream) up until the response has been completely processed. // Timeout includes all retries. Timeout string `json:"timeout,omitempty"` // UrlRewrite: The specification for rewrite URL before forwarding // requests to the destination. UrlRewrite *HttpRouteURLRewrite `json:"urlRewrite,omitempty"` // ForceSendFields is a list of field names (e.g. "CorsPolicy") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CorsPolicy") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpRouteRouteAction: The specifications for routing traffic and applying associated policies.
func (*HttpRouteRouteAction) MarshalJSON ¶
func (s *HttpRouteRouteAction) MarshalJSON() ([]byte, error)
type HttpRouteRouteMatch ¶
type HttpRouteRouteMatch struct { // FullPathMatch: The HTTP request path value should exactly match this // value. Only one of full_path_match, prefix_match, or regex_match // should be used. FullPathMatch string `json:"fullPathMatch,omitempty"` // Headers: Specifies a list of HTTP request headers to match against. // ALL of the supplied headers must be matched. Headers []*HttpRouteHeaderMatch `json:"headers,omitempty"` // IgnoreCase: Specifies if prefix_match and full_path_match matches are // case sensitive. The default value is false. IgnoreCase bool `json:"ignoreCase,omitempty"` // PrefixMatch: The HTTP request path value must begin with specified // prefix_match. prefix_match must begin with a /. Only one of // full_path_match, prefix_match, or regex_match should be used. PrefixMatch string `json:"prefixMatch,omitempty"` // QueryParameters: Specifies a list of query parameters to match // against. ALL of the query parameters must be matched. QueryParameters []*HttpRouteQueryParameterMatch `json:"queryParameters,omitempty"` // RegexMatch: The HTTP request path value must satisfy the regular // expression specified by regex_match after removing any query // parameters and anchor supplied with the original URL. For regular // expression grammar, please see // https://github.com/google/re2/wiki/Syntax Only one of // full_path_match, prefix_match, or regex_match should be used. RegexMatch string `json:"regexMatch,omitempty"` // ForceSendFields is a list of field names (e.g. "FullPathMatch") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FullPathMatch") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpRouteRouteMatch: RouteMatch defines specifications used to match requests. If multiple match types are set, this RouteMatch will match if ALL type of matches are matched.
func (*HttpRouteRouteMatch) MarshalJSON ¶
func (s *HttpRouteRouteMatch) MarshalJSON() ([]byte, error)
type HttpRouteRouteRule ¶
type HttpRouteRouteRule struct { // Action: The detailed rule defining how to route matched traffic. Action *HttpRouteRouteAction `json:"action,omitempty"` // Matches: A list of matches define conditions used for matching the // rule against incoming HTTP requests. Each match is independent, i.e. // this rule will be matched if ANY one of the matches is satisfied. If // no matches field is specified, this rule will unconditionally match // traffic. If a default rule is desired to be configured, add a rule // with no matches specified to the end of the rules list. Matches []*HttpRouteRouteMatch `json:"matches,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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Action") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpRouteRouteRule: Specifies how to match traffic and how to route traffic when traffic is matched.
func (*HttpRouteRouteRule) MarshalJSON ¶
func (s *HttpRouteRouteRule) MarshalJSON() ([]byte, error)
type HttpRouteStatefulSessionAffinityPolicy ¶
type HttpRouteStatefulSessionAffinityPolicy struct { // CookieTtl: Required. The cookie TTL value for the Set-Cookie header // generated by the data plane. The lifetime of the cookie may be set to // a value from 1 to 86400 seconds (24 hours) inclusive. CookieTtl string `json:"cookieTtl,omitempty"` // ForceSendFields is a list of field names (e.g. "CookieTtl") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CookieTtl") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpRouteStatefulSessionAffinityPolicy: The specification for cookie-based stateful session affinity where the date plane supplies a “session cookie” with the name "GSSA" which encodes a specific destination host and each request containing that cookie will be directed to that host as long as the destination host remains up and healthy. The gRPC proxyless mesh library or sidecar proxy will manage the session cookie but the client application code is responsible for copying the cookie from each RPC in the session to the next.
func (*HttpRouteStatefulSessionAffinityPolicy) MarshalJSON ¶
func (s *HttpRouteStatefulSessionAffinityPolicy) MarshalJSON() ([]byte, error)
type HttpRouteURLRewrite ¶
type HttpRouteURLRewrite struct { // HostRewrite: Prior to forwarding the request to the selected // destination, the requests host header is replaced by this value. HostRewrite string `json:"hostRewrite,omitempty"` // PathPrefixRewrite: Prior to forwarding the request to the selected // destination, the matching portion of the requests path is replaced by // this value. PathPrefixRewrite string `json:"pathPrefixRewrite,omitempty"` // ForceSendFields is a list of field names (e.g. "HostRewrite") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "HostRewrite") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HttpRouteURLRewrite: The specification for modifying the URL of the request, prior to forwarding the request to the destination.
func (*HttpRouteURLRewrite) MarshalJSON ¶
func (s *HttpRouteURLRewrite) MarshalJSON() ([]byte, error)
type LbRouteExtension ¶
type LbRouteExtension struct { // CreateTime: Output only. The timestamp when the resource was created. CreateTime string `json:"createTime,omitempty"` // Description: Optional. A human-readable description of the resource. Description string `json:"description,omitempty"` // ExtensionChains: Required. A set of ordered extension chains that // contain the match conditions and extensions to execute. Match // conditions for each extension chain are evaluated in sequence for a // given request. The first extension chain that has a condition that // matches the request is executed. Any subsequent extension chains do // not execute. Limited to 5 extension chains per resource. ExtensionChains []*ExtensionChain `json:"extensionChains,omitempty"` // ForwardingRules: Required. A list of references to the forwarding // rules to which this service extension is attached to. At least one // forwarding rule is required. There can be only one `LbRouteExtension` // resource per forwarding rule. ForwardingRules []string `json:"forwardingRules,omitempty"` // Labels: Optional. Set of labels associated with the // `LbRouteExtension` resource. The format must comply with the // following requirements // (/compute/docs/labeling-resources#requirements). Labels map[string]string `json:"labels,omitempty"` // LoadBalancingScheme: Required. All backend services and forwarding // rules referenced by this extension must share the same load balancing // scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For // more information, refer to Choosing a load balancer // (https://cloud.google.com/load-balancing/docs/backend-service). // // Possible values: // "LOAD_BALANCING_SCHEME_UNSPECIFIED" - Default value. Do not use. // "INTERNAL_MANAGED" - Signifies that this is used for Internal // HTTP(S) Load Balancing. // "EXTERNAL_MANAGED" - Signifies that this is used for External // Managed HTTP(S) Load Balancing. LoadBalancingScheme string `json:"loadBalancingScheme,omitempty"` // Name: Required. Name of the `LbRouteExtension` resource in the // following format: // `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_e // xtension}`. Name string `json:"name,omitempty"` // UpdateTime: Output only. The timestamp when the resource was updated. 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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreateTime") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
LbRouteExtension: `LbRouteExtension` is a resource that lets you control where traffic is routed to for a given request.
func (*LbRouteExtension) MarshalJSON ¶
func (s *LbRouteExtension) MarshalJSON() ([]byte, error)
type LbTrafficExtension ¶
type LbTrafficExtension struct { // CreateTime: Output only. The timestamp when the resource was created. CreateTime string `json:"createTime,omitempty"` // Description: Optional. A human-readable description of the resource. Description string `json:"description,omitempty"` // ExtensionChains: Required. A set of ordered extension chains that // contain the match conditions and extensions to execute. Match // conditions for each extension chain are evaluated in sequence for a // given request. The first extension chain that has a condition that // matches the request is executed. Any subsequent extension chains do // not execute. Limited to 5 extension chains per resource. ExtensionChains []*ExtensionChain `json:"extensionChains,omitempty"` // ForwardingRules: Required. A list of references to the forwarding // rules to which this service extension is attached to. At least one // forwarding rule is required. There can be only one // `LBTrafficExtension` resource per forwarding rule. ForwardingRules []string `json:"forwardingRules,omitempty"` // Labels: Optional. Set of labels associated with the // `LbTrafficExtension` resource. The format must comply with the // following requirements // (/compute/docs/labeling-resources#requirements). Labels map[string]string `json:"labels,omitempty"` // LoadBalancingScheme: Required. All backend services and forwarding // rules referenced by this extension must share the same load balancing // scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For // more information, refer to Choosing a load balancer // (https://cloud.google.com/load-balancing/docs/backend-service). // // Possible values: // "LOAD_BALANCING_SCHEME_UNSPECIFIED" - Default value. Do not use. // "INTERNAL_MANAGED" - Signifies that this is used for Internal // HTTP(S) Load Balancing. // "EXTERNAL_MANAGED" - Signifies that this is used for External // Managed HTTP(S) Load Balancing. LoadBalancingScheme string `json:"loadBalancingScheme,omitempty"` // Name: Required. Name of the `LbTrafficExtension` resource in the // following format: // `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traff // ic_extension}`. Name string `json:"name,omitempty"` // UpdateTime: Output only. The timestamp when the resource was updated. 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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreateTime") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
LbTrafficExtension: `LbTrafficExtension` is a resource that lets the extension service modify the headers and payloads of both requests and responses without impacting the choice of backend services or any other security policies associated with the backend service.
func (*LbTrafficExtension) MarshalJSON ¶
func (s *LbTrafficExtension) MarshalJSON() ([]byte, error)
type ListEndpointPoliciesResponse ¶
type ListEndpointPoliciesResponse struct { // EndpointPolicies: List of EndpointPolicy resources. EndpointPolicies []*EndpointPolicy `json:"endpointPolicies,omitempty"` // NextPageToken: If there might be more results than those appearing in // this response, then `next_page_token` is included. To get the next // set of results, call this method again using the value of // `next_page_token` as `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. "EndpointPolicies") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EndpointPolicies") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ListEndpointPoliciesResponse: Response returned by the ListEndpointPolicies method.
func (*ListEndpointPoliciesResponse) MarshalJSON ¶
func (s *ListEndpointPoliciesResponse) MarshalJSON() ([]byte, error)
type ListGatewaysResponse ¶
type ListGatewaysResponse struct { // Gateways: List of Gateway resources. Gateways []*Gateway `json:"gateways,omitempty"` // NextPageToken: If there might be more results than those appearing in // this response, then `next_page_token` is included. To get the next // set of results, call this method again using the value of // `next_page_token` as `page_token`. 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. "Gateways") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Gateways") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListGatewaysResponse: Response returned by the ListGateways method.
func (*ListGatewaysResponse) MarshalJSON ¶
func (s *ListGatewaysResponse) MarshalJSON() ([]byte, error)
type ListGrpcRoutesResponse ¶
type ListGrpcRoutesResponse struct { // GrpcRoutes: List of GrpcRoute resources. GrpcRoutes []*GrpcRoute `json:"grpcRoutes,omitempty"` // NextPageToken: If there might be more results than those appearing in // this response, then `next_page_token` is included. To get the next // set of results, call this method again using the value of // `next_page_token` as `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. "GrpcRoutes") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "GrpcRoutes") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListGrpcRoutesResponse: Response returned by the ListGrpcRoutes method.
func (*ListGrpcRoutesResponse) MarshalJSON ¶
func (s *ListGrpcRoutesResponse) MarshalJSON() ([]byte, error)
type ListHttpRoutesResponse ¶
type ListHttpRoutesResponse struct { // HttpRoutes: List of HttpRoute resources. HttpRoutes []*HttpRoute `json:"httpRoutes,omitempty"` // NextPageToken: If there might be more results than those appearing in // this response, then `next_page_token` is included. To get the next // set of results, call this method again using the value of // `next_page_token` as `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. "HttpRoutes") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "HttpRoutes") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListHttpRoutesResponse: Response returned by the ListHttpRoutes method.
func (*ListHttpRoutesResponse) MarshalJSON ¶
func (s *ListHttpRoutesResponse) MarshalJSON() ([]byte, error)
type ListLbRouteExtensionsResponse ¶
type ListLbRouteExtensionsResponse struct { // LbRouteExtensions: The list of `LbRouteExtension` resources. LbRouteExtensions []*LbRouteExtension `json:"lbRouteExtensions,omitempty"` // NextPageToken: A token identifying a page of results that the server // returns. 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. "LbRouteExtensions") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LbRouteExtensions") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ListLbRouteExtensionsResponse: Message for response to listing `LbRouteExtension` resources.
func (*ListLbRouteExtensionsResponse) MarshalJSON ¶
func (s *ListLbRouteExtensionsResponse) MarshalJSON() ([]byte, error)
type ListLbTrafficExtensionsResponse ¶
type ListLbTrafficExtensionsResponse struct { // LbTrafficExtensions: The list of `LbTrafficExtension` resources. LbTrafficExtensions []*LbTrafficExtension `json:"lbTrafficExtensions,omitempty"` // NextPageToken: A token identifying a page of results that the server // returns. 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. "LbTrafficExtensions") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LbTrafficExtensions") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ListLbTrafficExtensionsResponse: Message for response to listing `LbTrafficExtension` resources.
func (*ListLbTrafficExtensionsResponse) MarshalJSON ¶
func (s *ListLbTrafficExtensionsResponse) 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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Locations") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListLocationsResponse: The response message for Locations.ListLocations.
func (*ListLocationsResponse) MarshalJSON ¶
func (s *ListLocationsResponse) MarshalJSON() ([]byte, error)
type ListMeshesResponse ¶
type ListMeshesResponse struct { // Meshes: List of Mesh resources. Meshes []*Mesh `json:"meshes,omitempty"` // NextPageToken: If there might be more results than those appearing in // this response, then `next_page_token` is included. To get the next // set of results, call this method again using the value of // `next_page_token` as `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. "Meshes") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Meshes") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListMeshesResponse: Response returned by the ListMeshes method.
func (*ListMeshesResponse) MarshalJSON ¶
func (s *ListMeshesResponse) 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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListOperationsResponse: The response message for Operations.ListOperations.
func (*ListOperationsResponse) MarshalJSON ¶
func (s *ListOperationsResponse) MarshalJSON() ([]byte, error)
type ListServiceBindingsResponse ¶
type ListServiceBindingsResponse struct { // NextPageToken: If there might be more results than those appearing in // this response, then `next_page_token` is included. To get the next // set of results, call this method again using the value of // `next_page_token` as `page_token`. NextPageToken string `json:"nextPageToken,omitempty"` // ServiceBindings: List of ServiceBinding resources. ServiceBindings []*ServiceBinding `json:"serviceBindings,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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListServiceBindingsResponse: Response returned by the ListServiceBindings method.
func (*ListServiceBindingsResponse) MarshalJSON ¶
func (s *ListServiceBindingsResponse) MarshalJSON() ([]byte, error)
type ListServiceLbPoliciesResponse ¶
type ListServiceLbPoliciesResponse struct { // NextPageToken: If there might be more results than those appearing in // this response, then `next_page_token` is included. To get the next // set of results, call this method again using the value of // `next_page_token` as `page_token`. NextPageToken string `json:"nextPageToken,omitempty"` // ServiceLbPolicies: List of ServiceLbPolicy resources. ServiceLbPolicies []*ServiceLbPolicy `json:"serviceLbPolicies,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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListServiceLbPoliciesResponse: Response returned by the ListServiceLbPolicies method.
func (*ListServiceLbPoliciesResponse) MarshalJSON ¶
func (s *ListServiceLbPoliciesResponse) MarshalJSON() ([]byte, error)
type ListTcpRoutesResponse ¶
type ListTcpRoutesResponse struct { // NextPageToken: If there might be more results than those appearing in // this response, then `next_page_token` is included. To get the next // set of results, call this method again using the value of // `next_page_token` as `page_token`. NextPageToken string `json:"nextPageToken,omitempty"` // TcpRoutes: List of TcpRoute resources. TcpRoutes []*TcpRoute `json:"tcpRoutes,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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListTcpRoutesResponse: Response returned by the ListTcpRoutes method.
func (*ListTcpRoutesResponse) MarshalJSON ¶
func (s *ListTcpRoutesResponse) MarshalJSON() ([]byte, error)
type ListTlsRoutesResponse ¶
type ListTlsRoutesResponse struct { // NextPageToken: If there might be more results than those appearing in // this response, then `next_page_token` is included. To get the next // set of results, call this method again using the value of // `next_page_token` as `page_token`. NextPageToken string `json:"nextPageToken,omitempty"` // TlsRoutes: List of TlsRoute resources. TlsRoutes []*TlsRoute `json:"tlsRoutes,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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListTlsRoutesResponse: Response returned by the ListTlsRoutes method.
func (*ListTlsRoutesResponse) MarshalJSON ¶
func (s *ListTlsRoutesResponse) 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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Location: A resource that represents a Google Cloud location.
func (*Location) MarshalJSON ¶
type Mesh ¶
type Mesh struct { // CreateTime: Output only. The timestamp when the resource was created. CreateTime string `json:"createTime,omitempty"` // Description: Optional. A free-text description of the resource. Max // length 1024 characters. Description string `json:"description,omitempty"` // InterceptionPort: Optional. If set to a valid TCP port (1-65535), // instructs the SIDECAR proxy to listen on the specified port of // localhost (127.0.0.1) address. The SIDECAR proxy will expect all // traffic to be redirected to this port regardless of its actual // ip:port destination. If unset, a port '15001' is used as the // interception port. This is applicable only for sidecar proxy // deployments. InterceptionPort int64 `json:"interceptionPort,omitempty"` // Labels: Optional. Set of label tags associated with the Mesh // resource. Labels map[string]string `json:"labels,omitempty"` // Name: Required. Name of the Mesh resource. It matches pattern // `projects/*/locations/global/meshes/`. Name string `json:"name,omitempty"` // SelfLink: Output only. Server-defined URL of this resource SelfLink string `json:"selfLink,omitempty"` // UpdateTime: Output only. The timestamp when the resource was updated. 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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreateTime") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Mesh: Mesh represents a logical configuration grouping for workload to workload communication within a service mesh. Routes that point to mesh dictate how requests are routed within this logical mesh boundary.
func (*Mesh) MarshalJSON ¶
type MetadataLabelMatcher ¶
type MetadataLabelMatcher struct { // MetadataLabelMatchCriteria: Specifies how matching should be done. // Supported values are: MATCH_ANY: At least one of the Labels specified // in the matcher should match the metadata presented by xDS client. // MATCH_ALL: The metadata presented by the xDS client should contain // all of the labels specified here. The selection is determined based // on the best match. For example, suppose there are three // EndpointPolicy resources P1, P2 and P3 and if P1 has a the matcher as // MATCH_ANY , P2 has MATCH_ALL , and P3 has MATCH_ALL . If a client // with label connects, the config from P1 will be selected. If a client // with label connects, the config from P2 will be selected. If a client // with label connects, the config from P3 will be selected. If there is // more than one best match, (for example, if a config P4 with selector // exists and if a client with label connects), an error will be thrown. // // Possible values: // "METADATA_LABEL_MATCH_CRITERIA_UNSPECIFIED" - Default value. Should // not be used. // "MATCH_ANY" - At least one of the Labels specified in the matcher // should match the metadata presented by xDS client. // "MATCH_ALL" - The metadata presented by the xDS client should // contain all of the labels specified here. MetadataLabelMatchCriteria string `json:"metadataLabelMatchCriteria,omitempty"` // MetadataLabels: The list of label value pairs that must match labels // in the provided metadata based on filterMatchCriteria This list can // have at most 64 entries. The list can be empty if the match criteria // is MATCH_ANY, to specify a wildcard match (i.e this matches any // client). MetadataLabels []*MetadataLabels `json:"metadataLabels,omitempty"` // ForceSendFields is a list of field names (e.g. // "MetadataLabelMatchCriteria") to unconditionally include in API // requests. By default, fields with empty or default values are omitted // from API requests. However, any non-pointer, non-interface field // appearing in ForceSendFields will be sent to the server regardless of // whether the field is empty or not. This may be used to include empty // fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "MetadataLabelMatchCriteria") to include in API requests with the // JSON null value. By default, fields with empty values are omitted // from API requests. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
MetadataLabelMatcher: The matcher that is based on node metadata presented by xDS clients.
func (*MetadataLabelMatcher) MarshalJSON ¶
func (s *MetadataLabelMatcher) MarshalJSON() ([]byte, error)
type MetadataLabels ¶
type MetadataLabels struct { // LabelName: Required. Label name presented as key in xDS Node // Metadata. LabelName string `json:"labelName,omitempty"` // LabelValue: Required. Label value presented as value corresponding to // the above key, in xDS Node Metadata. LabelValue string `json:"labelValue,omitempty"` // ForceSendFields is a list of field names (e.g. "LabelName") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LabelName") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
MetadataLabels: Defines a name-pair value for a single label.
func (*MetadataLabels) MarshalJSON ¶
func (s *MetadataLabels) MarshalJSON() ([]byte, error)
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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Done") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Operation: This resource represents a long-running operation that is the result of a network API call.
func (*Operation) MarshalJSON ¶
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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ApiVersion") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AuditConfigs") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
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 ¶
type ProjectsLocationsEndpointPoliciesCreateCall ¶
type ProjectsLocationsEndpointPoliciesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEndpointPoliciesCreateCall) Context ¶
func (c *ProjectsLocationsEndpointPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsEndpointPoliciesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEndpointPoliciesCreateCall) Do ¶
func (c *ProjectsLocationsEndpointPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.endpointPolicies.create" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsEndpointPoliciesCreateCall) EndpointPolicyId ¶
func (c *ProjectsLocationsEndpointPoliciesCreateCall) EndpointPolicyId(endpointPolicyId string) *ProjectsLocationsEndpointPoliciesCreateCall
EndpointPolicyId sets the optional parameter "endpointPolicyId": Required. Short name of the EndpointPolicy resource to be created. E.g. "CustomECS".
func (*ProjectsLocationsEndpointPoliciesCreateCall) Fields ¶
func (c *ProjectsLocationsEndpointPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointPoliciesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEndpointPoliciesCreateCall) Header ¶
func (c *ProjectsLocationsEndpointPoliciesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsEndpointPoliciesDeleteCall ¶
type ProjectsLocationsEndpointPoliciesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEndpointPoliciesDeleteCall) Context ¶
func (c *ProjectsLocationsEndpointPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsEndpointPoliciesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEndpointPoliciesDeleteCall) Do ¶
func (c *ProjectsLocationsEndpointPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.endpointPolicies.delete" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsEndpointPoliciesDeleteCall) Fields ¶
func (c *ProjectsLocationsEndpointPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointPoliciesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEndpointPoliciesDeleteCall) Header ¶
func (c *ProjectsLocationsEndpointPoliciesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsEndpointPoliciesGetCall ¶
type ProjectsLocationsEndpointPoliciesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEndpointPoliciesGetCall) Context ¶
func (c *ProjectsLocationsEndpointPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsEndpointPoliciesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEndpointPoliciesGetCall) Do ¶
func (c *ProjectsLocationsEndpointPoliciesGetCall) Do(opts ...googleapi.CallOption) (*EndpointPolicy, error)
Do executes the "networkservices.projects.locations.endpointPolicies.get" call. Exactly one of *EndpointPolicy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *EndpointPolicy.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 (*ProjectsLocationsEndpointPoliciesGetCall) Fields ¶
func (c *ProjectsLocationsEndpointPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointPoliciesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEndpointPoliciesGetCall) Header ¶
func (c *ProjectsLocationsEndpointPoliciesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsEndpointPoliciesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsEndpointPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointPoliciesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsEndpointPoliciesGetIamPolicyCall ¶
type ProjectsLocationsEndpointPoliciesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEndpointPoliciesGetIamPolicyCall) Context ¶
func (c *ProjectsLocationsEndpointPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEndpointPoliciesGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEndpointPoliciesGetIamPolicyCall) Do ¶
func (c *ProjectsLocationsEndpointPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "networkservices.projects.locations.endpointPolicies.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 (*ProjectsLocationsEndpointPoliciesGetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsEndpointPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointPoliciesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEndpointPoliciesGetIamPolicyCall) Header ¶
func (c *ProjectsLocationsEndpointPoliciesGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsEndpointPoliciesGetIamPolicyCall) IfNoneMatch ¶
func (c *ProjectsLocationsEndpointPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointPoliciesGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsEndpointPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶
func (c *ProjectsLocationsEndpointPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsEndpointPoliciesGetIamPolicyCall
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 ProjectsLocationsEndpointPoliciesListCall ¶
type ProjectsLocationsEndpointPoliciesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEndpointPoliciesListCall) Context ¶
func (c *ProjectsLocationsEndpointPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsEndpointPoliciesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEndpointPoliciesListCall) Do ¶
func (c *ProjectsLocationsEndpointPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListEndpointPoliciesResponse, error)
Do executes the "networkservices.projects.locations.endpointPolicies.list" call. Exactly one of *ListEndpointPoliciesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListEndpointPoliciesResponse.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 (*ProjectsLocationsEndpointPoliciesListCall) Fields ¶
func (c *ProjectsLocationsEndpointPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointPoliciesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEndpointPoliciesListCall) Header ¶
func (c *ProjectsLocationsEndpointPoliciesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsEndpointPoliciesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsEndpointPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointPoliciesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsEndpointPoliciesListCall) PageSize ¶
func (c *ProjectsLocationsEndpointPoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsEndpointPoliciesListCall
PageSize sets the optional parameter "pageSize": Maximum number of EndpointPolicies to return per call.
func (*ProjectsLocationsEndpointPoliciesListCall) PageToken ¶
func (c *ProjectsLocationsEndpointPoliciesListCall) PageToken(pageToken string) *ProjectsLocationsEndpointPoliciesListCall
PageToken sets the optional parameter "pageToken": The value returned by the last `ListEndpointPoliciesResponse` Indicates that this is a continuation of a prior `ListEndpointPolicies` call, and that the system should return the next page of data.
func (*ProjectsLocationsEndpointPoliciesListCall) Pages ¶
func (c *ProjectsLocationsEndpointPoliciesListCall) Pages(ctx context.Context, f func(*ListEndpointPoliciesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsEndpointPoliciesPatchCall ¶
type ProjectsLocationsEndpointPoliciesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEndpointPoliciesPatchCall) Context ¶
func (c *ProjectsLocationsEndpointPoliciesPatchCall) Context(ctx context.Context) *ProjectsLocationsEndpointPoliciesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEndpointPoliciesPatchCall) Do ¶
func (c *ProjectsLocationsEndpointPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.endpointPolicies.patch" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsEndpointPoliciesPatchCall) Fields ¶
func (c *ProjectsLocationsEndpointPoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointPoliciesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEndpointPoliciesPatchCall) Header ¶
func (c *ProjectsLocationsEndpointPoliciesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsEndpointPoliciesPatchCall) UpdateMask ¶
func (c *ProjectsLocationsEndpointPoliciesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEndpointPoliciesPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used to specify the fields to be overwritten in the EndpointPolicy 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.
type ProjectsLocationsEndpointPoliciesService ¶
type ProjectsLocationsEndpointPoliciesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsEndpointPoliciesService ¶
func NewProjectsLocationsEndpointPoliciesService(s *Service) *ProjectsLocationsEndpointPoliciesService
func (*ProjectsLocationsEndpointPoliciesService) Create ¶
func (r *ProjectsLocationsEndpointPoliciesService) Create(parent string, endpointpolicy *EndpointPolicy) *ProjectsLocationsEndpointPoliciesCreateCall
Create: Creates a new EndpointPolicy in a given project and location.
- parent: The parent resource of the EndpointPolicy. Must be in the format `projects/*/locations/global`.
func (*ProjectsLocationsEndpointPoliciesService) Delete ¶
func (r *ProjectsLocationsEndpointPoliciesService) Delete(name string) *ProjectsLocationsEndpointPoliciesDeleteCall
Delete: Deletes a single EndpointPolicy.
- name: A name of the EndpointPolicy to delete. Must be in the format `projects/*/locations/global/endpointPolicies/*`.
func (*ProjectsLocationsEndpointPoliciesService) Get ¶
func (r *ProjectsLocationsEndpointPoliciesService) Get(name string) *ProjectsLocationsEndpointPoliciesGetCall
Get: Gets details of a single EndpointPolicy.
- name: A name of the EndpointPolicy to get. Must be in the format `projects/*/locations/global/endpointPolicies/*`.
func (*ProjectsLocationsEndpointPoliciesService) GetIamPolicy ¶
func (r *ProjectsLocationsEndpointPoliciesService) GetIamPolicy(resource string) *ProjectsLocationsEndpointPoliciesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
- resource: REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsLocationsEndpointPoliciesService) List ¶
func (r *ProjectsLocationsEndpointPoliciesService) List(parent string) *ProjectsLocationsEndpointPoliciesListCall
List: Lists EndpointPolicies in a given project and location.
- parent: The project and location from which the EndpointPolicies should be listed, specified in the format `projects/*/locations/global`.
func (*ProjectsLocationsEndpointPoliciesService) Patch ¶
func (r *ProjectsLocationsEndpointPoliciesService) Patch(name string, endpointpolicy *EndpointPolicy) *ProjectsLocationsEndpointPoliciesPatchCall
Patch: Updates the parameters of a single EndpointPolicy.
- name: Name of the EndpointPolicy resource. It matches pattern `projects/{project}/locations/global/endpointPolicies/{endpoint_poli cy}`.
func (*ProjectsLocationsEndpointPoliciesService) SetIamPolicy ¶
func (r *ProjectsLocationsEndpointPoliciesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsEndpointPoliciesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
- resource: REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsLocationsEndpointPoliciesService) TestIamPermissions ¶
func (r *ProjectsLocationsEndpointPoliciesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsEndpointPoliciesTestIamPermissionsCall
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.
- resource: REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
type ProjectsLocationsEndpointPoliciesSetIamPolicyCall ¶
type ProjectsLocationsEndpointPoliciesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEndpointPoliciesSetIamPolicyCall) Context ¶
func (c *ProjectsLocationsEndpointPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEndpointPoliciesSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEndpointPoliciesSetIamPolicyCall) Do ¶
func (c *ProjectsLocationsEndpointPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "networkservices.projects.locations.endpointPolicies.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 (*ProjectsLocationsEndpointPoliciesSetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsEndpointPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointPoliciesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEndpointPoliciesSetIamPolicyCall) Header ¶
func (c *ProjectsLocationsEndpointPoliciesSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsEndpointPoliciesTestIamPermissionsCall ¶
type ProjectsLocationsEndpointPoliciesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEndpointPoliciesTestIamPermissionsCall) Context ¶
func (c *ProjectsLocationsEndpointPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsEndpointPoliciesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsEndpointPoliciesTestIamPermissionsCall) Do ¶
func (c *ProjectsLocationsEndpointPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "networkservices.projects.locations.endpointPolicies.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. 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 (*ProjectsLocationsEndpointPoliciesTestIamPermissionsCall) Fields ¶
func (c *ProjectsLocationsEndpointPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointPoliciesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsEndpointPoliciesTestIamPermissionsCall) Header ¶
func (c *ProjectsLocationsEndpointPoliciesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsGatewaysCreateCall ¶
type ProjectsLocationsGatewaysCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGatewaysCreateCall) Context ¶
func (c *ProjectsLocationsGatewaysCreateCall) Context(ctx context.Context) *ProjectsLocationsGatewaysCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsGatewaysCreateCall) Do ¶
func (c *ProjectsLocationsGatewaysCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.gateways.create" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsGatewaysCreateCall) Fields ¶
func (c *ProjectsLocationsGatewaysCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsGatewaysCreateCall) GatewayId ¶
func (c *ProjectsLocationsGatewaysCreateCall) GatewayId(gatewayId string) *ProjectsLocationsGatewaysCreateCall
GatewayId sets the optional parameter "gatewayId": Required. Short name of the Gateway resource to be created.
func (*ProjectsLocationsGatewaysCreateCall) Header ¶
func (c *ProjectsLocationsGatewaysCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsGatewaysDeleteCall ¶
type ProjectsLocationsGatewaysDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGatewaysDeleteCall) Context ¶
func (c *ProjectsLocationsGatewaysDeleteCall) Context(ctx context.Context) *ProjectsLocationsGatewaysDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsGatewaysDeleteCall) Do ¶
func (c *ProjectsLocationsGatewaysDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.gateways.delete" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsGatewaysDeleteCall) Fields ¶
func (c *ProjectsLocationsGatewaysDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsGatewaysDeleteCall) Header ¶
func (c *ProjectsLocationsGatewaysDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsGatewaysGetCall ¶
type ProjectsLocationsGatewaysGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGatewaysGetCall) Context ¶
func (c *ProjectsLocationsGatewaysGetCall) Context(ctx context.Context) *ProjectsLocationsGatewaysGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsGatewaysGetCall) Do ¶
func (c *ProjectsLocationsGatewaysGetCall) Do(opts ...googleapi.CallOption) (*Gateway, error)
Do executes the "networkservices.projects.locations.gateways.get" call. Exactly one of *Gateway or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Gateway.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 (*ProjectsLocationsGatewaysGetCall) Fields ¶
func (c *ProjectsLocationsGatewaysGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsGatewaysGetCall) Header ¶
func (c *ProjectsLocationsGatewaysGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsGatewaysGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsGatewaysGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGatewaysGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsGatewaysGetIamPolicyCall ¶
type ProjectsLocationsGatewaysGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGatewaysGetIamPolicyCall) Context ¶
func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGatewaysGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsGatewaysGetIamPolicyCall) Do ¶
func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "networkservices.projects.locations.gateways.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 (*ProjectsLocationsGatewaysGetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsGatewaysGetIamPolicyCall) Header ¶
func (c *ProjectsLocationsGatewaysGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsGatewaysGetIamPolicyCall) IfNoneMatch ¶
func (c *ProjectsLocationsGatewaysGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsGatewaysGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsGatewaysGetIamPolicyCall) OptionsRequestedPolicyVersion ¶
func (c *ProjectsLocationsGatewaysGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsGatewaysGetIamPolicyCall
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 ProjectsLocationsGatewaysListCall ¶
type ProjectsLocationsGatewaysListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGatewaysListCall) Context ¶
func (c *ProjectsLocationsGatewaysListCall) Context(ctx context.Context) *ProjectsLocationsGatewaysListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsGatewaysListCall) Do ¶
func (c *ProjectsLocationsGatewaysListCall) Do(opts ...googleapi.CallOption) (*ListGatewaysResponse, error)
Do executes the "networkservices.projects.locations.gateways.list" call. Exactly one of *ListGatewaysResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListGatewaysResponse.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 (*ProjectsLocationsGatewaysListCall) Fields ¶
func (c *ProjectsLocationsGatewaysListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsGatewaysListCall) Header ¶
func (c *ProjectsLocationsGatewaysListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsGatewaysListCall) IfNoneMatch ¶
func (c *ProjectsLocationsGatewaysListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGatewaysListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsGatewaysListCall) PageSize ¶
func (c *ProjectsLocationsGatewaysListCall) PageSize(pageSize int64) *ProjectsLocationsGatewaysListCall
PageSize sets the optional parameter "pageSize": Maximum number of Gateways to return per call.
func (*ProjectsLocationsGatewaysListCall) PageToken ¶
func (c *ProjectsLocationsGatewaysListCall) PageToken(pageToken string) *ProjectsLocationsGatewaysListCall
PageToken sets the optional parameter "pageToken": The value returned by the last `ListGatewaysResponse` Indicates that this is a continuation of a prior `ListGateways` call, and that the system should return the next page of data.
func (*ProjectsLocationsGatewaysListCall) Pages ¶
func (c *ProjectsLocationsGatewaysListCall) Pages(ctx context.Context, f func(*ListGatewaysResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsGatewaysPatchCall ¶
type ProjectsLocationsGatewaysPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGatewaysPatchCall) Context ¶
func (c *ProjectsLocationsGatewaysPatchCall) Context(ctx context.Context) *ProjectsLocationsGatewaysPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsGatewaysPatchCall) Do ¶
func (c *ProjectsLocationsGatewaysPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.gateways.patch" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsGatewaysPatchCall) Fields ¶
func (c *ProjectsLocationsGatewaysPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsGatewaysPatchCall) Header ¶
func (c *ProjectsLocationsGatewaysPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsGatewaysPatchCall) UpdateMask ¶
func (c *ProjectsLocationsGatewaysPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGatewaysPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used to specify the fields to be overwritten in the Gateway 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.
type ProjectsLocationsGatewaysService ¶
type ProjectsLocationsGatewaysService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsGatewaysService ¶
func NewProjectsLocationsGatewaysService(s *Service) *ProjectsLocationsGatewaysService
func (*ProjectsLocationsGatewaysService) Create ¶
func (r *ProjectsLocationsGatewaysService) Create(parent string, gateway *Gateway) *ProjectsLocationsGatewaysCreateCall
Create: Creates a new Gateway in a given project and location.
- parent: The parent resource of the Gateway. Must be in the format `projects/*/locations/*`.
func (*ProjectsLocationsGatewaysService) Delete ¶
func (r *ProjectsLocationsGatewaysService) Delete(name string) *ProjectsLocationsGatewaysDeleteCall
Delete: Deletes a single Gateway.
- name: A name of the Gateway to delete. Must be in the format `projects/*/locations/*/gateways/*`.
func (*ProjectsLocationsGatewaysService) Get ¶
func (r *ProjectsLocationsGatewaysService) Get(name string) *ProjectsLocationsGatewaysGetCall
Get: Gets details of a single Gateway.
- name: A name of the Gateway to get. Must be in the format `projects/*/locations/*/gateways/*`.
func (*ProjectsLocationsGatewaysService) GetIamPolicy ¶
func (r *ProjectsLocationsGatewaysService) GetIamPolicy(resource string) *ProjectsLocationsGatewaysGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
- resource: REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsLocationsGatewaysService) List ¶
func (r *ProjectsLocationsGatewaysService) List(parent string) *ProjectsLocationsGatewaysListCall
List: Lists Gateways in a given project and location.
- parent: The project and location from which the Gateways should be listed, specified in the format `projects/*/locations/*`.
func (*ProjectsLocationsGatewaysService) Patch ¶
func (r *ProjectsLocationsGatewaysService) Patch(name string, gateway *Gateway) *ProjectsLocationsGatewaysPatchCall
Patch: Updates the parameters of a single Gateway.
- name: Name of the Gateway resource. It matches pattern `projects/*/locations/*/gateways/`.
func (*ProjectsLocationsGatewaysService) SetIamPolicy ¶
func (r *ProjectsLocationsGatewaysService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsGatewaysSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
- resource: REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsLocationsGatewaysService) TestIamPermissions ¶
func (r *ProjectsLocationsGatewaysService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsGatewaysTestIamPermissionsCall
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.
- resource: REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
type ProjectsLocationsGatewaysSetIamPolicyCall ¶
type ProjectsLocationsGatewaysSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGatewaysSetIamPolicyCall) Context ¶
func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGatewaysSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsGatewaysSetIamPolicyCall) Do ¶
func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "networkservices.projects.locations.gateways.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 (*ProjectsLocationsGatewaysSetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsGatewaysSetIamPolicyCall) Header ¶
func (c *ProjectsLocationsGatewaysSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsGatewaysTestIamPermissionsCall ¶
type ProjectsLocationsGatewaysTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGatewaysTestIamPermissionsCall) Context ¶
func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsGatewaysTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsGatewaysTestIamPermissionsCall) Do ¶
func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "networkservices.projects.locations.gateways.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. 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 (*ProjectsLocationsGatewaysTestIamPermissionsCall) Fields ¶
func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGatewaysTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsGatewaysTestIamPermissionsCall) Header ¶
func (c *ProjectsLocationsGatewaysTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsGetCall ¶
type ProjectsLocationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGetCall) Context ¶
func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsGetCall) Do ¶
func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error)
Do executes the "networkservices.projects.locations.get" call. Exactly one of *Location or error will be non-nil. 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 ¶
func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsGetCall) Header ¶
func (c *ProjectsLocationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsGrpcRoutesCreateCall ¶
type ProjectsLocationsGrpcRoutesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGrpcRoutesCreateCall) Context ¶
func (c *ProjectsLocationsGrpcRoutesCreateCall) Context(ctx context.Context) *ProjectsLocationsGrpcRoutesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsGrpcRoutesCreateCall) Do ¶
func (c *ProjectsLocationsGrpcRoutesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.grpcRoutes.create" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsGrpcRoutesCreateCall) Fields ¶
func (c *ProjectsLocationsGrpcRoutesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGrpcRoutesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsGrpcRoutesCreateCall) GrpcRouteId ¶
func (c *ProjectsLocationsGrpcRoutesCreateCall) GrpcRouteId(grpcRouteId string) *ProjectsLocationsGrpcRoutesCreateCall
GrpcRouteId sets the optional parameter "grpcRouteId": Required. Short name of the GrpcRoute resource to be created.
func (*ProjectsLocationsGrpcRoutesCreateCall) Header ¶
func (c *ProjectsLocationsGrpcRoutesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsGrpcRoutesDeleteCall ¶
type ProjectsLocationsGrpcRoutesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGrpcRoutesDeleteCall) Context ¶
func (c *ProjectsLocationsGrpcRoutesDeleteCall) Context(ctx context.Context) *ProjectsLocationsGrpcRoutesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsGrpcRoutesDeleteCall) Do ¶
func (c *ProjectsLocationsGrpcRoutesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.grpcRoutes.delete" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsGrpcRoutesDeleteCall) Fields ¶
func (c *ProjectsLocationsGrpcRoutesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGrpcRoutesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsGrpcRoutesDeleteCall) Header ¶
func (c *ProjectsLocationsGrpcRoutesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsGrpcRoutesGetCall ¶
type ProjectsLocationsGrpcRoutesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGrpcRoutesGetCall) Context ¶
func (c *ProjectsLocationsGrpcRoutesGetCall) Context(ctx context.Context) *ProjectsLocationsGrpcRoutesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsGrpcRoutesGetCall) Do ¶
func (c *ProjectsLocationsGrpcRoutesGetCall) Do(opts ...googleapi.CallOption) (*GrpcRoute, error)
Do executes the "networkservices.projects.locations.grpcRoutes.get" call. Exactly one of *GrpcRoute or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GrpcRoute.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 (*ProjectsLocationsGrpcRoutesGetCall) Fields ¶
func (c *ProjectsLocationsGrpcRoutesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGrpcRoutesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsGrpcRoutesGetCall) Header ¶
func (c *ProjectsLocationsGrpcRoutesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsGrpcRoutesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsGrpcRoutesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGrpcRoutesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsGrpcRoutesListCall ¶
type ProjectsLocationsGrpcRoutesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGrpcRoutesListCall) Context ¶
func (c *ProjectsLocationsGrpcRoutesListCall) Context(ctx context.Context) *ProjectsLocationsGrpcRoutesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsGrpcRoutesListCall) Do ¶
func (c *ProjectsLocationsGrpcRoutesListCall) Do(opts ...googleapi.CallOption) (*ListGrpcRoutesResponse, error)
Do executes the "networkservices.projects.locations.grpcRoutes.list" call. Exactly one of *ListGrpcRoutesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListGrpcRoutesResponse.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 (*ProjectsLocationsGrpcRoutesListCall) Fields ¶
func (c *ProjectsLocationsGrpcRoutesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGrpcRoutesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsGrpcRoutesListCall) Header ¶
func (c *ProjectsLocationsGrpcRoutesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsGrpcRoutesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsGrpcRoutesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGrpcRoutesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsGrpcRoutesListCall) PageSize ¶
func (c *ProjectsLocationsGrpcRoutesListCall) PageSize(pageSize int64) *ProjectsLocationsGrpcRoutesListCall
PageSize sets the optional parameter "pageSize": Maximum number of GrpcRoutes to return per call.
func (*ProjectsLocationsGrpcRoutesListCall) PageToken ¶
func (c *ProjectsLocationsGrpcRoutesListCall) PageToken(pageToken string) *ProjectsLocationsGrpcRoutesListCall
PageToken sets the optional parameter "pageToken": The value returned by the last `ListGrpcRoutesResponse` Indicates that this is a continuation of a prior `ListGrpcRoutes` call, and that the system should return the next page of data.
func (*ProjectsLocationsGrpcRoutesListCall) Pages ¶
func (c *ProjectsLocationsGrpcRoutesListCall) Pages(ctx context.Context, f func(*ListGrpcRoutesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsGrpcRoutesPatchCall ¶
type ProjectsLocationsGrpcRoutesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGrpcRoutesPatchCall) Context ¶
func (c *ProjectsLocationsGrpcRoutesPatchCall) Context(ctx context.Context) *ProjectsLocationsGrpcRoutesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsGrpcRoutesPatchCall) Do ¶
func (c *ProjectsLocationsGrpcRoutesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.grpcRoutes.patch" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsGrpcRoutesPatchCall) Fields ¶
func (c *ProjectsLocationsGrpcRoutesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGrpcRoutesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsGrpcRoutesPatchCall) Header ¶
func (c *ProjectsLocationsGrpcRoutesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsGrpcRoutesPatchCall) UpdateMask ¶
func (c *ProjectsLocationsGrpcRoutesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGrpcRoutesPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used to specify the fields to be overwritten in the GrpcRoute 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.
type ProjectsLocationsGrpcRoutesService ¶
type ProjectsLocationsGrpcRoutesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsGrpcRoutesService ¶
func NewProjectsLocationsGrpcRoutesService(s *Service) *ProjectsLocationsGrpcRoutesService
func (*ProjectsLocationsGrpcRoutesService) Create ¶
func (r *ProjectsLocationsGrpcRoutesService) Create(parent string, grpcroute *GrpcRoute) *ProjectsLocationsGrpcRoutesCreateCall
Create: Creates a new GrpcRoute in a given project and location.
- parent: The parent resource of the GrpcRoute. Must be in the format `projects/*/locations/global`.
func (*ProjectsLocationsGrpcRoutesService) Delete ¶
func (r *ProjectsLocationsGrpcRoutesService) Delete(name string) *ProjectsLocationsGrpcRoutesDeleteCall
Delete: Deletes a single GrpcRoute.
- name: A name of the GrpcRoute to delete. Must be in the format `projects/*/locations/global/grpcRoutes/*`.
func (*ProjectsLocationsGrpcRoutesService) Get ¶
func (r *ProjectsLocationsGrpcRoutesService) Get(name string) *ProjectsLocationsGrpcRoutesGetCall
Get: Gets details of a single GrpcRoute.
- name: A name of the GrpcRoute to get. Must be in the format `projects/*/locations/global/grpcRoutes/*`.
func (*ProjectsLocationsGrpcRoutesService) List ¶
func (r *ProjectsLocationsGrpcRoutesService) List(parent string) *ProjectsLocationsGrpcRoutesListCall
List: Lists GrpcRoutes in a given project and location.
- parent: The project and location from which the GrpcRoutes should be listed, specified in the format `projects/*/locations/global`.
func (*ProjectsLocationsGrpcRoutesService) Patch ¶
func (r *ProjectsLocationsGrpcRoutesService) Patch(name string, grpcroute *GrpcRoute) *ProjectsLocationsGrpcRoutesPatchCall
Patch: Updates the parameters of a single GrpcRoute.
- name: Name of the GrpcRoute resource. It matches pattern `projects/*/locations/global/grpcRoutes/`.
type ProjectsLocationsHttpRoutesCreateCall ¶
type ProjectsLocationsHttpRoutesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsHttpRoutesCreateCall) Context ¶
func (c *ProjectsLocationsHttpRoutesCreateCall) Context(ctx context.Context) *ProjectsLocationsHttpRoutesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsHttpRoutesCreateCall) Do ¶
func (c *ProjectsLocationsHttpRoutesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.httpRoutes.create" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsHttpRoutesCreateCall) Fields ¶
func (c *ProjectsLocationsHttpRoutesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsHttpRoutesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsHttpRoutesCreateCall) Header ¶
func (c *ProjectsLocationsHttpRoutesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsHttpRoutesCreateCall) HttpRouteId ¶
func (c *ProjectsLocationsHttpRoutesCreateCall) HttpRouteId(httpRouteId string) *ProjectsLocationsHttpRoutesCreateCall
HttpRouteId sets the optional parameter "httpRouteId": Required. Short name of the HttpRoute resource to be created.
type ProjectsLocationsHttpRoutesDeleteCall ¶
type ProjectsLocationsHttpRoutesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsHttpRoutesDeleteCall) Context ¶
func (c *ProjectsLocationsHttpRoutesDeleteCall) Context(ctx context.Context) *ProjectsLocationsHttpRoutesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsHttpRoutesDeleteCall) Do ¶
func (c *ProjectsLocationsHttpRoutesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.httpRoutes.delete" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsHttpRoutesDeleteCall) Fields ¶
func (c *ProjectsLocationsHttpRoutesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsHttpRoutesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsHttpRoutesDeleteCall) Header ¶
func (c *ProjectsLocationsHttpRoutesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsHttpRoutesGetCall ¶
type ProjectsLocationsHttpRoutesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsHttpRoutesGetCall) Context ¶
func (c *ProjectsLocationsHttpRoutesGetCall) Context(ctx context.Context) *ProjectsLocationsHttpRoutesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsHttpRoutesGetCall) Do ¶
func (c *ProjectsLocationsHttpRoutesGetCall) Do(opts ...googleapi.CallOption) (*HttpRoute, error)
Do executes the "networkservices.projects.locations.httpRoutes.get" call. Exactly one of *HttpRoute or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *HttpRoute.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 (*ProjectsLocationsHttpRoutesGetCall) Fields ¶
func (c *ProjectsLocationsHttpRoutesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsHttpRoutesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsHttpRoutesGetCall) Header ¶
func (c *ProjectsLocationsHttpRoutesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsHttpRoutesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsHttpRoutesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsHttpRoutesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsHttpRoutesListCall ¶
type ProjectsLocationsHttpRoutesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsHttpRoutesListCall) Context ¶
func (c *ProjectsLocationsHttpRoutesListCall) Context(ctx context.Context) *ProjectsLocationsHttpRoutesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsHttpRoutesListCall) Do ¶
func (c *ProjectsLocationsHttpRoutesListCall) Do(opts ...googleapi.CallOption) (*ListHttpRoutesResponse, error)
Do executes the "networkservices.projects.locations.httpRoutes.list" call. Exactly one of *ListHttpRoutesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListHttpRoutesResponse.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 (*ProjectsLocationsHttpRoutesListCall) Fields ¶
func (c *ProjectsLocationsHttpRoutesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsHttpRoutesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsHttpRoutesListCall) Header ¶
func (c *ProjectsLocationsHttpRoutesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsHttpRoutesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsHttpRoutesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsHttpRoutesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsHttpRoutesListCall) PageSize ¶
func (c *ProjectsLocationsHttpRoutesListCall) PageSize(pageSize int64) *ProjectsLocationsHttpRoutesListCall
PageSize sets the optional parameter "pageSize": Maximum number of HttpRoutes to return per call.
func (*ProjectsLocationsHttpRoutesListCall) PageToken ¶
func (c *ProjectsLocationsHttpRoutesListCall) PageToken(pageToken string) *ProjectsLocationsHttpRoutesListCall
PageToken sets the optional parameter "pageToken": The value returned by the last `ListHttpRoutesResponse` Indicates that this is a continuation of a prior `ListHttpRoutes` call, and that the system should return the next page of data.
func (*ProjectsLocationsHttpRoutesListCall) Pages ¶
func (c *ProjectsLocationsHttpRoutesListCall) Pages(ctx context.Context, f func(*ListHttpRoutesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsHttpRoutesPatchCall ¶
type ProjectsLocationsHttpRoutesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsHttpRoutesPatchCall) Context ¶
func (c *ProjectsLocationsHttpRoutesPatchCall) Context(ctx context.Context) *ProjectsLocationsHttpRoutesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsHttpRoutesPatchCall) Do ¶
func (c *ProjectsLocationsHttpRoutesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.httpRoutes.patch" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsHttpRoutesPatchCall) Fields ¶
func (c *ProjectsLocationsHttpRoutesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsHttpRoutesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsHttpRoutesPatchCall) Header ¶
func (c *ProjectsLocationsHttpRoutesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsHttpRoutesPatchCall) UpdateMask ¶
func (c *ProjectsLocationsHttpRoutesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsHttpRoutesPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used to specify the fields to be overwritten in the HttpRoute 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.
type ProjectsLocationsHttpRoutesService ¶
type ProjectsLocationsHttpRoutesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsHttpRoutesService ¶
func NewProjectsLocationsHttpRoutesService(s *Service) *ProjectsLocationsHttpRoutesService
func (*ProjectsLocationsHttpRoutesService) Create ¶
func (r *ProjectsLocationsHttpRoutesService) Create(parent string, httproute *HttpRoute) *ProjectsLocationsHttpRoutesCreateCall
Create: Creates a new HttpRoute in a given project and location.
- parent: The parent resource of the HttpRoute. Must be in the format `projects/*/locations/global`.
func (*ProjectsLocationsHttpRoutesService) Delete ¶
func (r *ProjectsLocationsHttpRoutesService) Delete(name string) *ProjectsLocationsHttpRoutesDeleteCall
Delete: Deletes a single HttpRoute.
- name: A name of the HttpRoute to delete. Must be in the format `projects/*/locations/global/httpRoutes/*`.
func (*ProjectsLocationsHttpRoutesService) Get ¶
func (r *ProjectsLocationsHttpRoutesService) Get(name string) *ProjectsLocationsHttpRoutesGetCall
Get: Gets details of a single HttpRoute.
- name: A name of the HttpRoute to get. Must be in the format `projects/*/locations/global/httpRoutes/*`.
func (*ProjectsLocationsHttpRoutesService) List ¶
func (r *ProjectsLocationsHttpRoutesService) List(parent string) *ProjectsLocationsHttpRoutesListCall
List: Lists HttpRoute in a given project and location.
- parent: The project and location from which the HttpRoutes should be listed, specified in the format `projects/*/locations/global`.
func (*ProjectsLocationsHttpRoutesService) Patch ¶
func (r *ProjectsLocationsHttpRoutesService) Patch(name string, httproute *HttpRoute) *ProjectsLocationsHttpRoutesPatchCall
Patch: Updates the parameters of a single HttpRoute.
- name: Name of the HttpRoute resource. It matches pattern `projects/*/locations/global/httpRoutes/http_route_name>`.
type ProjectsLocationsLbRouteExtensionsCreateCall ¶
type ProjectsLocationsLbRouteExtensionsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsLbRouteExtensionsCreateCall) Context ¶
func (c *ProjectsLocationsLbRouteExtensionsCreateCall) Context(ctx context.Context) *ProjectsLocationsLbRouteExtensionsCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsLbRouteExtensionsCreateCall) Do ¶
func (c *ProjectsLocationsLbRouteExtensionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.lbRouteExtensions.create" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsLbRouteExtensionsCreateCall) Fields ¶
func (c *ProjectsLocationsLbRouteExtensionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLbRouteExtensionsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsLbRouteExtensionsCreateCall) Header ¶
func (c *ProjectsLocationsLbRouteExtensionsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsLbRouteExtensionsCreateCall) LbRouteExtensionId ¶
func (c *ProjectsLocationsLbRouteExtensionsCreateCall) LbRouteExtensionId(lbRouteExtensionId string) *ProjectsLocationsLbRouteExtensionsCreateCall
LbRouteExtensionId sets the optional parameter "lbRouteExtensionId": Required. User-provided ID of the `LbRouteExtension` resource to be created.
func (*ProjectsLocationsLbRouteExtensionsCreateCall) RequestId ¶
func (c *ProjectsLocationsLbRouteExtensionsCreateCall) RequestId(requestId string) *ProjectsLocationsLbRouteExtensionsCreateCall
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 can ignore the request if it has already been completed. The server guarantees 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, ignores 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 ProjectsLocationsLbRouteExtensionsDeleteCall ¶
type ProjectsLocationsLbRouteExtensionsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsLbRouteExtensionsDeleteCall) Context ¶
func (c *ProjectsLocationsLbRouteExtensionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsLbRouteExtensionsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsLbRouteExtensionsDeleteCall) Do ¶
func (c *ProjectsLocationsLbRouteExtensionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.lbRouteExtensions.delete" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsLbRouteExtensionsDeleteCall) Fields ¶
func (c *ProjectsLocationsLbRouteExtensionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLbRouteExtensionsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsLbRouteExtensionsDeleteCall) Header ¶
func (c *ProjectsLocationsLbRouteExtensionsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsLbRouteExtensionsDeleteCall) RequestId ¶
func (c *ProjectsLocationsLbRouteExtensionsDeleteCall) RequestId(requestId string) *ProjectsLocationsLbRouteExtensionsDeleteCall
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 can ignore the request if it has already been completed. The server guarantees 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, ignores 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 ProjectsLocationsLbRouteExtensionsGetCall ¶
type ProjectsLocationsLbRouteExtensionsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsLbRouteExtensionsGetCall) Context ¶
func (c *ProjectsLocationsLbRouteExtensionsGetCall) Context(ctx context.Context) *ProjectsLocationsLbRouteExtensionsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsLbRouteExtensionsGetCall) Do ¶
func (c *ProjectsLocationsLbRouteExtensionsGetCall) Do(opts ...googleapi.CallOption) (*LbRouteExtension, error)
Do executes the "networkservices.projects.locations.lbRouteExtensions.get" call. Exactly one of *LbRouteExtension or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LbRouteExtension.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 (*ProjectsLocationsLbRouteExtensionsGetCall) Fields ¶
func (c *ProjectsLocationsLbRouteExtensionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLbRouteExtensionsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsLbRouteExtensionsGetCall) Header ¶
func (c *ProjectsLocationsLbRouteExtensionsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsLbRouteExtensionsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsLbRouteExtensionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLbRouteExtensionsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsLbRouteExtensionsListCall ¶
type ProjectsLocationsLbRouteExtensionsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsLbRouteExtensionsListCall) Context ¶
func (c *ProjectsLocationsLbRouteExtensionsListCall) Context(ctx context.Context) *ProjectsLocationsLbRouteExtensionsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsLbRouteExtensionsListCall) Do ¶
func (c *ProjectsLocationsLbRouteExtensionsListCall) Do(opts ...googleapi.CallOption) (*ListLbRouteExtensionsResponse, error)
Do executes the "networkservices.projects.locations.lbRouteExtensions.list" call. Exactly one of *ListLbRouteExtensionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLbRouteExtensionsResponse.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 (*ProjectsLocationsLbRouteExtensionsListCall) Fields ¶
func (c *ProjectsLocationsLbRouteExtensionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLbRouteExtensionsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsLbRouteExtensionsListCall) Filter ¶
func (c *ProjectsLocationsLbRouteExtensionsListCall) Filter(filter string) *ProjectsLocationsLbRouteExtensionsListCall
Filter sets the optional parameter "filter": Filtering results.
func (*ProjectsLocationsLbRouteExtensionsListCall) Header ¶
func (c *ProjectsLocationsLbRouteExtensionsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsLbRouteExtensionsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsLbRouteExtensionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLbRouteExtensionsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsLbRouteExtensionsListCall) OrderBy ¶
func (c *ProjectsLocationsLbRouteExtensionsListCall) OrderBy(orderBy string) *ProjectsLocationsLbRouteExtensionsListCall
OrderBy sets the optional parameter "orderBy": Hint for how to order the results.
func (*ProjectsLocationsLbRouteExtensionsListCall) PageSize ¶
func (c *ProjectsLocationsLbRouteExtensionsListCall) PageSize(pageSize int64) *ProjectsLocationsLbRouteExtensionsListCall
PageSize sets the optional parameter "pageSize": Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.
func (*ProjectsLocationsLbRouteExtensionsListCall) PageToken ¶
func (c *ProjectsLocationsLbRouteExtensionsListCall) PageToken(pageToken string) *ProjectsLocationsLbRouteExtensionsListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results that the server returns.
func (*ProjectsLocationsLbRouteExtensionsListCall) Pages ¶
func (c *ProjectsLocationsLbRouteExtensionsListCall) Pages(ctx context.Context, f func(*ListLbRouteExtensionsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsLbRouteExtensionsPatchCall ¶
type ProjectsLocationsLbRouteExtensionsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsLbRouteExtensionsPatchCall) Context ¶
func (c *ProjectsLocationsLbRouteExtensionsPatchCall) Context(ctx context.Context) *ProjectsLocationsLbRouteExtensionsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsLbRouteExtensionsPatchCall) Do ¶
func (c *ProjectsLocationsLbRouteExtensionsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.lbRouteExtensions.patch" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsLbRouteExtensionsPatchCall) Fields ¶
func (c *ProjectsLocationsLbRouteExtensionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsLbRouteExtensionsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsLbRouteExtensionsPatchCall) Header ¶
func (c *ProjectsLocationsLbRouteExtensionsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsLbRouteExtensionsPatchCall) RequestId ¶
func (c *ProjectsLocationsLbRouteExtensionsPatchCall) RequestId(requestId string) *ProjectsLocationsLbRouteExtensionsPatchCall
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 can ignore the request if it has already been completed. The server guarantees 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, ignores 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).
func (*ProjectsLocationsLbRouteExtensionsPatchCall) UpdateMask ¶
func (c *ProjectsLocationsLbRouteExtensionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsLbRouteExtensionsPatchCall
UpdateMask sets the optional parameter "updateMask": Required. Used to specify the fields to be overwritten in the `LbRouteExtension` resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.
type ProjectsLocationsLbRouteExtensionsService ¶
type ProjectsLocationsLbRouteExtensionsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsLbRouteExtensionsService ¶
func NewProjectsLocationsLbRouteExtensionsService(s *Service) *ProjectsLocationsLbRouteExtensionsService
func (*ProjectsLocationsLbRouteExtensionsService) Create ¶
func (r *ProjectsLocationsLbRouteExtensionsService) Create(parent string, lbrouteextension *LbRouteExtension) *ProjectsLocationsLbRouteExtensionsCreateCall
Create: Creates a new `LbRouteExtension` resource in a given project and location.
- parent: The parent resource of the `LbRouteExtension` resource. Must be in the format `projects/{project}/locations/{location}`.
func (*ProjectsLocationsLbRouteExtensionsService) Delete ¶
func (r *ProjectsLocationsLbRouteExtensionsService) Delete(name string) *ProjectsLocationsLbRouteExtensionsDeleteCall
Delete: Deletes the specified `LbRouteExtension` resource.
- name: The name of the `LbRouteExtension` resource to delete. Must be in the format `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route _extension}`.
func (*ProjectsLocationsLbRouteExtensionsService) Get ¶
func (r *ProjectsLocationsLbRouteExtensionsService) Get(name string) *ProjectsLocationsLbRouteExtensionsGetCall
Get: Gets details of the specified `LbRouteExtension` resource.
- name: A name of the `LbRouteExtension` resource to get. Must be in the format `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route _extension}`.
func (*ProjectsLocationsLbRouteExtensionsService) List ¶
func (r *ProjectsLocationsLbRouteExtensionsService) List(parent string) *ProjectsLocationsLbRouteExtensionsListCall
List: Lists `LbRouteExtension` resources in a given project and location.
- parent: The project and location from which the `LbRouteExtension` resources are listed, specified in the following format: `projects/{project}/locations/{location}`.
func (*ProjectsLocationsLbRouteExtensionsService) Patch ¶
func (r *ProjectsLocationsLbRouteExtensionsService) Patch(name string, lbrouteextension *LbRouteExtension) *ProjectsLocationsLbRouteExtensionsPatchCall
Patch: Updates the parameters of the specified `LbRouteExtension` resource.
- name: Name of the `LbRouteExtension` resource in the following format: `projects/{project}/locations/{location}/lbRouteExtensions/{lb_route _extension}`.
type ProjectsLocationsLbTrafficExtensionsCreateCall ¶
type ProjectsLocationsLbTrafficExtensionsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsLbTrafficExtensionsCreateCall) Context ¶
func (c *ProjectsLocationsLbTrafficExtensionsCreateCall) Context(ctx context.Context) *ProjectsLocationsLbTrafficExtensionsCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsLbTrafficExtensionsCreateCall) Do ¶
func (c *ProjectsLocationsLbTrafficExtensionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.lbTrafficExtensions.create" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsLbTrafficExtensionsCreateCall) Fields ¶
func (c *ProjectsLocationsLbTrafficExtensionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsLbTrafficExtensionsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsLbTrafficExtensionsCreateCall) Header ¶
func (c *ProjectsLocationsLbTrafficExtensionsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsLbTrafficExtensionsCreateCall) LbTrafficExtensionId ¶
func (c *ProjectsLocationsLbTrafficExtensionsCreateCall) LbTrafficExtensionId(lbTrafficExtensionId string) *ProjectsLocationsLbTrafficExtensionsCreateCall
LbTrafficExtensionId sets the optional parameter "lbTrafficExtensionId": Required. User-provided ID of the `LbTrafficExtension` resource to be created.
func (*ProjectsLocationsLbTrafficExtensionsCreateCall) RequestId ¶
func (c *ProjectsLocationsLbTrafficExtensionsCreateCall) RequestId(requestId string) *ProjectsLocationsLbTrafficExtensionsCreateCall
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 can ignore the request if it has already been completed. The server guarantees 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, ignores 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 ProjectsLocationsLbTrafficExtensionsDeleteCall ¶
type ProjectsLocationsLbTrafficExtensionsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsLbTrafficExtensionsDeleteCall) Context ¶
func (c *ProjectsLocationsLbTrafficExtensionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsLbTrafficExtensionsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsLbTrafficExtensionsDeleteCall) Do ¶
func (c *ProjectsLocationsLbTrafficExtensionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.lbTrafficExtensions.delete" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsLbTrafficExtensionsDeleteCall) Fields ¶
func (c *ProjectsLocationsLbTrafficExtensionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsLbTrafficExtensionsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsLbTrafficExtensionsDeleteCall) Header ¶
func (c *ProjectsLocationsLbTrafficExtensionsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsLbTrafficExtensionsDeleteCall) RequestId ¶
func (c *ProjectsLocationsLbTrafficExtensionsDeleteCall) RequestId(requestId string) *ProjectsLocationsLbTrafficExtensionsDeleteCall
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 can ignore the request if it has already been completed. The server guarantees 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, ignores 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 ProjectsLocationsLbTrafficExtensionsGetCall ¶
type ProjectsLocationsLbTrafficExtensionsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsLbTrafficExtensionsGetCall) Context ¶
func (c *ProjectsLocationsLbTrafficExtensionsGetCall) Context(ctx context.Context) *ProjectsLocationsLbTrafficExtensionsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsLbTrafficExtensionsGetCall) Do ¶
func (c *ProjectsLocationsLbTrafficExtensionsGetCall) Do(opts ...googleapi.CallOption) (*LbTrafficExtension, error)
Do executes the "networkservices.projects.locations.lbTrafficExtensions.get" call. Exactly one of *LbTrafficExtension or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LbTrafficExtension.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 (*ProjectsLocationsLbTrafficExtensionsGetCall) Fields ¶
func (c *ProjectsLocationsLbTrafficExtensionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsLbTrafficExtensionsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsLbTrafficExtensionsGetCall) Header ¶
func (c *ProjectsLocationsLbTrafficExtensionsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsLbTrafficExtensionsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsLbTrafficExtensionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsLbTrafficExtensionsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsLbTrafficExtensionsListCall ¶
type ProjectsLocationsLbTrafficExtensionsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsLbTrafficExtensionsListCall) Context ¶
func (c *ProjectsLocationsLbTrafficExtensionsListCall) Context(ctx context.Context) *ProjectsLocationsLbTrafficExtensionsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsLbTrafficExtensionsListCall) Do ¶
func (c *ProjectsLocationsLbTrafficExtensionsListCall) Do(opts ...googleapi.CallOption) (*ListLbTrafficExtensionsResponse, error)
Do executes the "networkservices.projects.locations.lbTrafficExtensions.list" call. Exactly one of *ListLbTrafficExtensionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLbTrafficExtensionsResponse.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 (*ProjectsLocationsLbTrafficExtensionsListCall) Fields ¶
func (c *ProjectsLocationsLbTrafficExtensionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsLbTrafficExtensionsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsLbTrafficExtensionsListCall) Filter ¶
func (c *ProjectsLocationsLbTrafficExtensionsListCall) Filter(filter string) *ProjectsLocationsLbTrafficExtensionsListCall
Filter sets the optional parameter "filter": Filtering results.
func (*ProjectsLocationsLbTrafficExtensionsListCall) Header ¶
func (c *ProjectsLocationsLbTrafficExtensionsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsLbTrafficExtensionsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsLbTrafficExtensionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsLbTrafficExtensionsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsLbTrafficExtensionsListCall) OrderBy ¶
func (c *ProjectsLocationsLbTrafficExtensionsListCall) OrderBy(orderBy string) *ProjectsLocationsLbTrafficExtensionsListCall
OrderBy sets the optional parameter "orderBy": Hint for how to order the results.
func (*ProjectsLocationsLbTrafficExtensionsListCall) PageSize ¶
func (c *ProjectsLocationsLbTrafficExtensionsListCall) PageSize(pageSize int64) *ProjectsLocationsLbTrafficExtensionsListCall
PageSize sets the optional parameter "pageSize": Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.
func (*ProjectsLocationsLbTrafficExtensionsListCall) PageToken ¶
func (c *ProjectsLocationsLbTrafficExtensionsListCall) PageToken(pageToken string) *ProjectsLocationsLbTrafficExtensionsListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results that the server returns.
func (*ProjectsLocationsLbTrafficExtensionsListCall) Pages ¶
func (c *ProjectsLocationsLbTrafficExtensionsListCall) Pages(ctx context.Context, f func(*ListLbTrafficExtensionsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsLbTrafficExtensionsPatchCall ¶
type ProjectsLocationsLbTrafficExtensionsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsLbTrafficExtensionsPatchCall) Context ¶
func (c *ProjectsLocationsLbTrafficExtensionsPatchCall) Context(ctx context.Context) *ProjectsLocationsLbTrafficExtensionsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsLbTrafficExtensionsPatchCall) Do ¶
func (c *ProjectsLocationsLbTrafficExtensionsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.lbTrafficExtensions.patch" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsLbTrafficExtensionsPatchCall) Fields ¶
func (c *ProjectsLocationsLbTrafficExtensionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsLbTrafficExtensionsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsLbTrafficExtensionsPatchCall) Header ¶
func (c *ProjectsLocationsLbTrafficExtensionsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsLbTrafficExtensionsPatchCall) RequestId ¶
func (c *ProjectsLocationsLbTrafficExtensionsPatchCall) RequestId(requestId string) *ProjectsLocationsLbTrafficExtensionsPatchCall
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 can ignore the request if it has already been completed. The server guarantees 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, ignores 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).
func (*ProjectsLocationsLbTrafficExtensionsPatchCall) UpdateMask ¶
func (c *ProjectsLocationsLbTrafficExtensionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsLbTrafficExtensionsPatchCall
UpdateMask sets the optional parameter "updateMask": Required. Used to specify the fields to be overwritten in the `LbTrafficExtension` resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.
type ProjectsLocationsLbTrafficExtensionsService ¶
type ProjectsLocationsLbTrafficExtensionsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsLbTrafficExtensionsService ¶
func NewProjectsLocationsLbTrafficExtensionsService(s *Service) *ProjectsLocationsLbTrafficExtensionsService
func (*ProjectsLocationsLbTrafficExtensionsService) Create ¶
func (r *ProjectsLocationsLbTrafficExtensionsService) Create(parent string, lbtrafficextension *LbTrafficExtension) *ProjectsLocationsLbTrafficExtensionsCreateCall
Create: Creates a new `LbTrafficExtension` resource in a given project and location.
- parent: The parent resource of the `LbTrafficExtension` resource. Must be in the format `projects/{project}/locations/{location}`.
func (*ProjectsLocationsLbTrafficExtensionsService) Delete ¶
func (r *ProjectsLocationsLbTrafficExtensionsService) Delete(name string) *ProjectsLocationsLbTrafficExtensionsDeleteCall
Delete: Deletes the specified `LbTrafficExtension` resource.
- name: The name of the `LbTrafficExtension` resource to delete. Must be in the format `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_tra ffic_extension}`.
func (*ProjectsLocationsLbTrafficExtensionsService) Get ¶
func (r *ProjectsLocationsLbTrafficExtensionsService) Get(name string) *ProjectsLocationsLbTrafficExtensionsGetCall
Get: Gets details of the specified `LbTrafficExtension` resource.
- name: A name of the `LbTrafficExtension` resource to get. Must be in the format `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_tra ffic_extension}`.
func (*ProjectsLocationsLbTrafficExtensionsService) List ¶
func (r *ProjectsLocationsLbTrafficExtensionsService) List(parent string) *ProjectsLocationsLbTrafficExtensionsListCall
List: Lists `LbTrafficExtension` resources in a given project and location.
- parent: The project and location from which the `LbTrafficExtension` resources are listed, specified in the following format: `projects/{project}/locations/{location}`.
func (*ProjectsLocationsLbTrafficExtensionsService) Patch ¶
func (r *ProjectsLocationsLbTrafficExtensionsService) Patch(name string, lbtrafficextension *LbTrafficExtension) *ProjectsLocationsLbTrafficExtensionsPatchCall
Patch: Updates the parameters of the specified `LbTrafficExtension` resource.
- name: Name of the `LbTrafficExtension` resource in the following format: `projects/{project}/locations/{location}/lbTrafficExtensions/{lb_tra ffic_extension}`.
type ProjectsLocationsListCall ¶
type ProjectsLocationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsListCall) Context ¶
func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsListCall) Do ¶
func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
Do executes the "networkservices.projects.locations.list" call. Exactly one of *ListLocationsResponse or error will be non-nil. 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) Fields ¶
func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsListCall) Filter ¶
func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
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 ¶
func (c *ProjectsLocationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsListCall) PageSize ¶
func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return. If not set, the service selects a default.
func (*ProjectsLocationsListCall) PageToken ¶
func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
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 ¶
func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsMeshesCreateCall ¶
type ProjectsLocationsMeshesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsMeshesCreateCall) Context ¶
func (c *ProjectsLocationsMeshesCreateCall) Context(ctx context.Context) *ProjectsLocationsMeshesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsMeshesCreateCall) Do ¶
func (c *ProjectsLocationsMeshesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.meshes.create" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsMeshesCreateCall) Fields ¶
func (c *ProjectsLocationsMeshesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMeshesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsMeshesCreateCall) Header ¶
func (c *ProjectsLocationsMeshesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsMeshesCreateCall) MeshId ¶
func (c *ProjectsLocationsMeshesCreateCall) MeshId(meshId string) *ProjectsLocationsMeshesCreateCall
MeshId sets the optional parameter "meshId": Required. Short name of the Mesh resource to be created.
type ProjectsLocationsMeshesDeleteCall ¶
type ProjectsLocationsMeshesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsMeshesDeleteCall) Context ¶
func (c *ProjectsLocationsMeshesDeleteCall) Context(ctx context.Context) *ProjectsLocationsMeshesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsMeshesDeleteCall) Do ¶
func (c *ProjectsLocationsMeshesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.meshes.delete" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsMeshesDeleteCall) Fields ¶
func (c *ProjectsLocationsMeshesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMeshesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsMeshesDeleteCall) Header ¶
func (c *ProjectsLocationsMeshesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsMeshesGetCall ¶
type ProjectsLocationsMeshesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsMeshesGetCall) Context ¶
func (c *ProjectsLocationsMeshesGetCall) Context(ctx context.Context) *ProjectsLocationsMeshesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsMeshesGetCall) Do ¶
func (c *ProjectsLocationsMeshesGetCall) Do(opts ...googleapi.CallOption) (*Mesh, error)
Do executes the "networkservices.projects.locations.meshes.get" call. Exactly one of *Mesh or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Mesh.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 (*ProjectsLocationsMeshesGetCall) Fields ¶
func (c *ProjectsLocationsMeshesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMeshesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsMeshesGetCall) Header ¶
func (c *ProjectsLocationsMeshesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsMeshesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsMeshesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMeshesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsMeshesGetIamPolicyCall ¶
type ProjectsLocationsMeshesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsMeshesGetIamPolicyCall) Context ¶
func (c *ProjectsLocationsMeshesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsMeshesGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsMeshesGetIamPolicyCall) Do ¶
func (c *ProjectsLocationsMeshesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "networkservices.projects.locations.meshes.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 (*ProjectsLocationsMeshesGetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsMeshesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsMeshesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsMeshesGetIamPolicyCall) Header ¶
func (c *ProjectsLocationsMeshesGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsMeshesGetIamPolicyCall) IfNoneMatch ¶
func (c *ProjectsLocationsMeshesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsMeshesGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsMeshesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶
func (c *ProjectsLocationsMeshesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsMeshesGetIamPolicyCall
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 ProjectsLocationsMeshesListCall ¶
type ProjectsLocationsMeshesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsMeshesListCall) Context ¶
func (c *ProjectsLocationsMeshesListCall) Context(ctx context.Context) *ProjectsLocationsMeshesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsMeshesListCall) Do ¶
func (c *ProjectsLocationsMeshesListCall) Do(opts ...googleapi.CallOption) (*ListMeshesResponse, error)
Do executes the "networkservices.projects.locations.meshes.list" call. Exactly one of *ListMeshesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListMeshesResponse.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 (*ProjectsLocationsMeshesListCall) Fields ¶
func (c *ProjectsLocationsMeshesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMeshesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsMeshesListCall) Header ¶
func (c *ProjectsLocationsMeshesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsMeshesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsMeshesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMeshesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsMeshesListCall) PageSize ¶
func (c *ProjectsLocationsMeshesListCall) PageSize(pageSize int64) *ProjectsLocationsMeshesListCall
PageSize sets the optional parameter "pageSize": Maximum number of Meshes to return per call.
func (*ProjectsLocationsMeshesListCall) PageToken ¶
func (c *ProjectsLocationsMeshesListCall) PageToken(pageToken string) *ProjectsLocationsMeshesListCall
PageToken sets the optional parameter "pageToken": The value returned by the last `ListMeshesResponse` Indicates that this is a continuation of a prior `ListMeshes` call, and that the system should return the next page of data.
func (*ProjectsLocationsMeshesListCall) Pages ¶
func (c *ProjectsLocationsMeshesListCall) Pages(ctx context.Context, f func(*ListMeshesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsMeshesPatchCall ¶
type ProjectsLocationsMeshesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsMeshesPatchCall) Context ¶
func (c *ProjectsLocationsMeshesPatchCall) Context(ctx context.Context) *ProjectsLocationsMeshesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsMeshesPatchCall) Do ¶
func (c *ProjectsLocationsMeshesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.meshes.patch" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsMeshesPatchCall) Fields ¶
func (c *ProjectsLocationsMeshesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMeshesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsMeshesPatchCall) Header ¶
func (c *ProjectsLocationsMeshesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsMeshesPatchCall) UpdateMask ¶
func (c *ProjectsLocationsMeshesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMeshesPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used to specify the fields to be overwritten in the Mesh 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.
type ProjectsLocationsMeshesService ¶
type ProjectsLocationsMeshesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsMeshesService ¶
func NewProjectsLocationsMeshesService(s *Service) *ProjectsLocationsMeshesService
func (*ProjectsLocationsMeshesService) Create ¶
func (r *ProjectsLocationsMeshesService) Create(parent string, mesh *Mesh) *ProjectsLocationsMeshesCreateCall
Create: Creates a new Mesh in a given project and location.
- parent: The parent resource of the Mesh. Must be in the format `projects/*/locations/global`.
func (*ProjectsLocationsMeshesService) Delete ¶
func (r *ProjectsLocationsMeshesService) Delete(name string) *ProjectsLocationsMeshesDeleteCall
Delete: Deletes a single Mesh.
- name: A name of the Mesh to delete. Must be in the format `projects/*/locations/global/meshes/*`.
func (*ProjectsLocationsMeshesService) Get ¶
func (r *ProjectsLocationsMeshesService) Get(name string) *ProjectsLocationsMeshesGetCall
Get: Gets details of a single Mesh.
- name: A name of the Mesh to get. Must be in the format `projects/*/locations/global/meshes/*`.
func (*ProjectsLocationsMeshesService) GetIamPolicy ¶
func (r *ProjectsLocationsMeshesService) GetIamPolicy(resource string) *ProjectsLocationsMeshesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
- resource: REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsLocationsMeshesService) List ¶
func (r *ProjectsLocationsMeshesService) List(parent string) *ProjectsLocationsMeshesListCall
List: Lists Meshes in a given project and location.
- parent: The project and location from which the Meshes should be listed, specified in the format `projects/*/locations/global`.
func (*ProjectsLocationsMeshesService) Patch ¶
func (r *ProjectsLocationsMeshesService) Patch(name string, mesh *Mesh) *ProjectsLocationsMeshesPatchCall
Patch: Updates the parameters of a single Mesh.
- name: Name of the Mesh resource. It matches pattern `projects/*/locations/global/meshes/`.
func (*ProjectsLocationsMeshesService) SetIamPolicy ¶
func (r *ProjectsLocationsMeshesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsMeshesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
- resource: REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsLocationsMeshesService) TestIamPermissions ¶
func (r *ProjectsLocationsMeshesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsMeshesTestIamPermissionsCall
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.
- resource: REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
type ProjectsLocationsMeshesSetIamPolicyCall ¶
type ProjectsLocationsMeshesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsMeshesSetIamPolicyCall) Context ¶
func (c *ProjectsLocationsMeshesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsMeshesSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsMeshesSetIamPolicyCall) Do ¶
func (c *ProjectsLocationsMeshesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "networkservices.projects.locations.meshes.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 (*ProjectsLocationsMeshesSetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsMeshesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsMeshesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsMeshesSetIamPolicyCall) Header ¶
func (c *ProjectsLocationsMeshesSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsMeshesTestIamPermissionsCall ¶
type ProjectsLocationsMeshesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsMeshesTestIamPermissionsCall) Context ¶
func (c *ProjectsLocationsMeshesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsMeshesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsMeshesTestIamPermissionsCall) Do ¶
func (c *ProjectsLocationsMeshesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "networkservices.projects.locations.meshes.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. 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 (*ProjectsLocationsMeshesTestIamPermissionsCall) Fields ¶
func (c *ProjectsLocationsMeshesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsMeshesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsMeshesTestIamPermissionsCall) Header ¶
func (c *ProjectsLocationsMeshesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsOperationsCancelCall ¶
type ProjectsLocationsOperationsCancelCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsCancelCall) Context ¶
func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsCancelCall) Do ¶
func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "networkservices.projects.locations.operations.cancel" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsCancelCall) Fields ¶
func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsCancelCall) Header ¶
func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsOperationsDeleteCall ¶
type ProjectsLocationsOperationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsDeleteCall) Context ¶
func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsDeleteCall) Do ¶
func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "networkservices.projects.locations.operations.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsDeleteCall) Fields ¶
func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsDeleteCall) Header ¶
func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsOperationsGetCall ¶
type ProjectsLocationsOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsGetCall) Context ¶
func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsGetCall) Do ¶
func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.operations.get" call. Exactly one of *Operation or error will be non-nil. 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 ¶
func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsGetCall) Header ¶
func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsOperationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsOperationsListCall ¶
type ProjectsLocationsOperationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsListCall) Context ¶
func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsListCall) Do ¶
func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
Do executes the "networkservices.projects.locations.operations.list" call. Exactly one of *ListOperationsResponse or error will be non-nil. 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 ¶
func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsListCall) Filter ¶
func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*ProjectsLocationsOperationsListCall) Header ¶
func (c *ProjectsLocationsOperationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsOperationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsOperationsListCall) PageSize ¶
func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list page size.
func (*ProjectsLocationsOperationsListCall) PageToken ¶
func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list page token.
func (*ProjectsLocationsOperationsListCall) Pages ¶
func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsOperationsService ¶
type ProjectsLocationsOperationsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsOperationsService ¶
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService
func (*ProjectsLocationsOperationsService) Cancel ¶
func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
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 ¶
func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall
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 ¶
func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
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 ¶
func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
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 ProjectsLocationsService ¶
type ProjectsLocationsService struct { EndpointPolicies *ProjectsLocationsEndpointPoliciesService Gateways *ProjectsLocationsGatewaysService GrpcRoutes *ProjectsLocationsGrpcRoutesService HttpRoutes *ProjectsLocationsHttpRoutesService LbRouteExtensions *ProjectsLocationsLbRouteExtensionsService LbTrafficExtensions *ProjectsLocationsLbTrafficExtensionsService Meshes *ProjectsLocationsMeshesService Operations *ProjectsLocationsOperationsService ServiceBindings *ProjectsLocationsServiceBindingsService ServiceLbPolicies *ProjectsLocationsServiceLbPoliciesService TcpRoutes *ProjectsLocationsTcpRoutesService TlsRoutes *ProjectsLocationsTlsRoutesService // contains filtered or unexported fields }
func NewProjectsLocationsService ¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
func (*ProjectsLocationsService) Get ¶
func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall
Get: Gets information about a location.
- name: Resource name for the location.
func (*ProjectsLocationsService) List ¶
func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall
List: Lists information about the supported locations for this service.
- name: The resource that owns the locations collection, if applicable.
type ProjectsLocationsServiceBindingsCreateCall ¶
type ProjectsLocationsServiceBindingsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsServiceBindingsCreateCall) Context ¶
func (c *ProjectsLocationsServiceBindingsCreateCall) Context(ctx context.Context) *ProjectsLocationsServiceBindingsCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsServiceBindingsCreateCall) Do ¶
func (c *ProjectsLocationsServiceBindingsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.serviceBindings.create" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsServiceBindingsCreateCall) Fields ¶
func (c *ProjectsLocationsServiceBindingsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceBindingsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsServiceBindingsCreateCall) Header ¶
func (c *ProjectsLocationsServiceBindingsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsServiceBindingsCreateCall) ServiceBindingId ¶
func (c *ProjectsLocationsServiceBindingsCreateCall) ServiceBindingId(serviceBindingId string) *ProjectsLocationsServiceBindingsCreateCall
ServiceBindingId sets the optional parameter "serviceBindingId": Required. Short name of the ServiceBinding resource to be created.
type ProjectsLocationsServiceBindingsDeleteCall ¶
type ProjectsLocationsServiceBindingsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsServiceBindingsDeleteCall) Context ¶
func (c *ProjectsLocationsServiceBindingsDeleteCall) Context(ctx context.Context) *ProjectsLocationsServiceBindingsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsServiceBindingsDeleteCall) Do ¶
func (c *ProjectsLocationsServiceBindingsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.serviceBindings.delete" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsServiceBindingsDeleteCall) Fields ¶
func (c *ProjectsLocationsServiceBindingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceBindingsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsServiceBindingsDeleteCall) Header ¶
func (c *ProjectsLocationsServiceBindingsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsServiceBindingsGetCall ¶
type ProjectsLocationsServiceBindingsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsServiceBindingsGetCall) Context ¶
func (c *ProjectsLocationsServiceBindingsGetCall) Context(ctx context.Context) *ProjectsLocationsServiceBindingsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsServiceBindingsGetCall) Do ¶
func (c *ProjectsLocationsServiceBindingsGetCall) Do(opts ...googleapi.CallOption) (*ServiceBinding, error)
Do executes the "networkservices.projects.locations.serviceBindings.get" call. Exactly one of *ServiceBinding or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ServiceBinding.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 (*ProjectsLocationsServiceBindingsGetCall) Fields ¶
func (c *ProjectsLocationsServiceBindingsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceBindingsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsServiceBindingsGetCall) Header ¶
func (c *ProjectsLocationsServiceBindingsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsServiceBindingsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsServiceBindingsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsServiceBindingsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsServiceBindingsGetIamPolicyCall ¶
type ProjectsLocationsServiceBindingsGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsServiceBindingsGetIamPolicyCall) Context ¶
func (c *ProjectsLocationsServiceBindingsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServiceBindingsGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsServiceBindingsGetIamPolicyCall) Do ¶
func (c *ProjectsLocationsServiceBindingsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "networkservices.projects.locations.serviceBindings.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 (*ProjectsLocationsServiceBindingsGetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsServiceBindingsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceBindingsGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsServiceBindingsGetIamPolicyCall) Header ¶
func (c *ProjectsLocationsServiceBindingsGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsServiceBindingsGetIamPolicyCall) IfNoneMatch ¶
func (c *ProjectsLocationsServiceBindingsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsServiceBindingsGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsServiceBindingsGetIamPolicyCall) OptionsRequestedPolicyVersion ¶
func (c *ProjectsLocationsServiceBindingsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsServiceBindingsGetIamPolicyCall
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 ProjectsLocationsServiceBindingsListCall ¶
type ProjectsLocationsServiceBindingsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsServiceBindingsListCall) Context ¶
func (c *ProjectsLocationsServiceBindingsListCall) Context(ctx context.Context) *ProjectsLocationsServiceBindingsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsServiceBindingsListCall) Do ¶
func (c *ProjectsLocationsServiceBindingsListCall) Do(opts ...googleapi.CallOption) (*ListServiceBindingsResponse, error)
Do executes the "networkservices.projects.locations.serviceBindings.list" call. Exactly one of *ListServiceBindingsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListServiceBindingsResponse.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 (*ProjectsLocationsServiceBindingsListCall) Fields ¶
func (c *ProjectsLocationsServiceBindingsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceBindingsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsServiceBindingsListCall) Header ¶
func (c *ProjectsLocationsServiceBindingsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsServiceBindingsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsServiceBindingsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsServiceBindingsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsServiceBindingsListCall) PageSize ¶
func (c *ProjectsLocationsServiceBindingsListCall) PageSize(pageSize int64) *ProjectsLocationsServiceBindingsListCall
PageSize sets the optional parameter "pageSize": Maximum number of ServiceBindings to return per call.
func (*ProjectsLocationsServiceBindingsListCall) PageToken ¶
func (c *ProjectsLocationsServiceBindingsListCall) PageToken(pageToken string) *ProjectsLocationsServiceBindingsListCall
PageToken sets the optional parameter "pageToken": The value returned by the last `ListServiceBindingsResponse` Indicates that this is a continuation of a prior `ListRouters` call, and that the system should return the next page of data.
func (*ProjectsLocationsServiceBindingsListCall) Pages ¶
func (c *ProjectsLocationsServiceBindingsListCall) Pages(ctx context.Context, f func(*ListServiceBindingsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsServiceBindingsService ¶
type ProjectsLocationsServiceBindingsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsServiceBindingsService ¶
func NewProjectsLocationsServiceBindingsService(s *Service) *ProjectsLocationsServiceBindingsService
func (*ProjectsLocationsServiceBindingsService) Create ¶
func (r *ProjectsLocationsServiceBindingsService) Create(parent string, servicebinding *ServiceBinding) *ProjectsLocationsServiceBindingsCreateCall
Create: Creates a new ServiceBinding in a given project and location.
- parent: The parent resource of the ServiceBinding. Must be in the format `projects/*/locations/global`.
func (*ProjectsLocationsServiceBindingsService) Delete ¶
func (r *ProjectsLocationsServiceBindingsService) Delete(name string) *ProjectsLocationsServiceBindingsDeleteCall
Delete: Deletes a single ServiceBinding.
- name: A name of the ServiceBinding to delete. Must be in the format `projects/*/locations/global/serviceBindings/*`.
func (*ProjectsLocationsServiceBindingsService) Get ¶
func (r *ProjectsLocationsServiceBindingsService) Get(name string) *ProjectsLocationsServiceBindingsGetCall
Get: Gets details of a single ServiceBinding.
- name: A name of the ServiceBinding to get. Must be in the format `projects/*/locations/global/serviceBindings/*`.
func (*ProjectsLocationsServiceBindingsService) GetIamPolicy ¶
func (r *ProjectsLocationsServiceBindingsService) GetIamPolicy(resource string) *ProjectsLocationsServiceBindingsGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
- resource: REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsLocationsServiceBindingsService) List ¶
func (r *ProjectsLocationsServiceBindingsService) List(parent string) *ProjectsLocationsServiceBindingsListCall
List: Lists ServiceBinding in a given project and location.
- parent: The project and location from which the ServiceBindings should be listed, specified in the format `projects/*/locations/global`.
func (*ProjectsLocationsServiceBindingsService) SetIamPolicy ¶
func (r *ProjectsLocationsServiceBindingsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsServiceBindingsSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
- resource: REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsLocationsServiceBindingsService) TestIamPermissions ¶
func (r *ProjectsLocationsServiceBindingsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsServiceBindingsTestIamPermissionsCall
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.
- resource: REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
type ProjectsLocationsServiceBindingsSetIamPolicyCall ¶
type ProjectsLocationsServiceBindingsSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsServiceBindingsSetIamPolicyCall) Context ¶
func (c *ProjectsLocationsServiceBindingsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServiceBindingsSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsServiceBindingsSetIamPolicyCall) Do ¶
func (c *ProjectsLocationsServiceBindingsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "networkservices.projects.locations.serviceBindings.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 (*ProjectsLocationsServiceBindingsSetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsServiceBindingsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceBindingsSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsServiceBindingsSetIamPolicyCall) Header ¶
func (c *ProjectsLocationsServiceBindingsSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsServiceBindingsTestIamPermissionsCall ¶
type ProjectsLocationsServiceBindingsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsServiceBindingsTestIamPermissionsCall) Context ¶
func (c *ProjectsLocationsServiceBindingsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsServiceBindingsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsServiceBindingsTestIamPermissionsCall) Do ¶
func (c *ProjectsLocationsServiceBindingsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "networkservices.projects.locations.serviceBindings.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. 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 (*ProjectsLocationsServiceBindingsTestIamPermissionsCall) Fields ¶
func (c *ProjectsLocationsServiceBindingsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceBindingsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsServiceBindingsTestIamPermissionsCall) Header ¶
func (c *ProjectsLocationsServiceBindingsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsServiceLbPoliciesCreateCall ¶
type ProjectsLocationsServiceLbPoliciesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsServiceLbPoliciesCreateCall) Context ¶
func (c *ProjectsLocationsServiceLbPoliciesCreateCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsServiceLbPoliciesCreateCall) Do ¶
func (c *ProjectsLocationsServiceLbPoliciesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.serviceLbPolicies.create" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsServiceLbPoliciesCreateCall) Fields ¶
func (c *ProjectsLocationsServiceLbPoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsServiceLbPoliciesCreateCall) Header ¶
func (c *ProjectsLocationsServiceLbPoliciesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsServiceLbPoliciesCreateCall) ServiceLbPolicyId ¶
func (c *ProjectsLocationsServiceLbPoliciesCreateCall) ServiceLbPolicyId(serviceLbPolicyId string) *ProjectsLocationsServiceLbPoliciesCreateCall
ServiceLbPolicyId sets the optional parameter "serviceLbPolicyId": Required. Short name of the ServiceLbPolicy resource to be created. E.g. for resource name `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb _policy_name}`. the id is value of {service_lb_policy_name}
type ProjectsLocationsServiceLbPoliciesDeleteCall ¶
type ProjectsLocationsServiceLbPoliciesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsServiceLbPoliciesDeleteCall) Context ¶
func (c *ProjectsLocationsServiceLbPoliciesDeleteCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsServiceLbPoliciesDeleteCall) Do ¶
func (c *ProjectsLocationsServiceLbPoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.serviceLbPolicies.delete" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsServiceLbPoliciesDeleteCall) Fields ¶
func (c *ProjectsLocationsServiceLbPoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsServiceLbPoliciesDeleteCall) Header ¶
func (c *ProjectsLocationsServiceLbPoliciesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsServiceLbPoliciesGetCall ¶
type ProjectsLocationsServiceLbPoliciesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsServiceLbPoliciesGetCall) Context ¶
func (c *ProjectsLocationsServiceLbPoliciesGetCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsServiceLbPoliciesGetCall) Do ¶
func (c *ProjectsLocationsServiceLbPoliciesGetCall) Do(opts ...googleapi.CallOption) (*ServiceLbPolicy, error)
Do executes the "networkservices.projects.locations.serviceLbPolicies.get" call. Exactly one of *ServiceLbPolicy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ServiceLbPolicy.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 (*ProjectsLocationsServiceLbPoliciesGetCall) Fields ¶
func (c *ProjectsLocationsServiceLbPoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsServiceLbPoliciesGetCall) Header ¶
func (c *ProjectsLocationsServiceLbPoliciesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsServiceLbPoliciesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsServiceLbPoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsServiceLbPoliciesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsServiceLbPoliciesGetIamPolicyCall ¶
type ProjectsLocationsServiceLbPoliciesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) Context ¶
func (c *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) Do ¶
func (c *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "networkservices.projects.locations.serviceLbPolicies.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 (*ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) Header ¶
func (c *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) IfNoneMatch ¶
func (c *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶
func (c *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall
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 ProjectsLocationsServiceLbPoliciesListCall ¶
type ProjectsLocationsServiceLbPoliciesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsServiceLbPoliciesListCall) Context ¶
func (c *ProjectsLocationsServiceLbPoliciesListCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsServiceLbPoliciesListCall) Do ¶
func (c *ProjectsLocationsServiceLbPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListServiceLbPoliciesResponse, error)
Do executes the "networkservices.projects.locations.serviceLbPolicies.list" call. Exactly one of *ListServiceLbPoliciesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListServiceLbPoliciesResponse.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 (*ProjectsLocationsServiceLbPoliciesListCall) Fields ¶
func (c *ProjectsLocationsServiceLbPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsServiceLbPoliciesListCall) Header ¶
func (c *ProjectsLocationsServiceLbPoliciesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsServiceLbPoliciesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsServiceLbPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsServiceLbPoliciesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsServiceLbPoliciesListCall) PageSize ¶
func (c *ProjectsLocationsServiceLbPoliciesListCall) PageSize(pageSize int64) *ProjectsLocationsServiceLbPoliciesListCall
PageSize sets the optional parameter "pageSize": Maximum number of ServiceLbPolicies to return per call.
func (*ProjectsLocationsServiceLbPoliciesListCall) PageToken ¶
func (c *ProjectsLocationsServiceLbPoliciesListCall) PageToken(pageToken string) *ProjectsLocationsServiceLbPoliciesListCall
PageToken sets the optional parameter "pageToken": The value returned by the last `ListServiceLbPoliciesResponse` Indicates that this is a continuation of a prior `ListRouters` call, and that the system should return the next page of data.
func (*ProjectsLocationsServiceLbPoliciesListCall) Pages ¶
func (c *ProjectsLocationsServiceLbPoliciesListCall) Pages(ctx context.Context, f func(*ListServiceLbPoliciesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsServiceLbPoliciesPatchCall ¶
type ProjectsLocationsServiceLbPoliciesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsServiceLbPoliciesPatchCall) Context ¶
func (c *ProjectsLocationsServiceLbPoliciesPatchCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsServiceLbPoliciesPatchCall) Do ¶
func (c *ProjectsLocationsServiceLbPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.serviceLbPolicies.patch" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsServiceLbPoliciesPatchCall) Fields ¶
func (c *ProjectsLocationsServiceLbPoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsServiceLbPoliciesPatchCall) Header ¶
func (c *ProjectsLocationsServiceLbPoliciesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsServiceLbPoliciesPatchCall) UpdateMask ¶
func (c *ProjectsLocationsServiceLbPoliciesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsServiceLbPoliciesPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used to specify the fields to be overwritten in the ServiceLbPolicy 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.
type ProjectsLocationsServiceLbPoliciesService ¶
type ProjectsLocationsServiceLbPoliciesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsServiceLbPoliciesService ¶
func NewProjectsLocationsServiceLbPoliciesService(s *Service) *ProjectsLocationsServiceLbPoliciesService
func (*ProjectsLocationsServiceLbPoliciesService) Create ¶
func (r *ProjectsLocationsServiceLbPoliciesService) Create(parent string, servicelbpolicy *ServiceLbPolicy) *ProjectsLocationsServiceLbPoliciesCreateCall
Create: Creates a new ServiceLbPolicy in a given project and location.
- parent: The parent resource of the ServiceLbPolicy. Must be in the format `projects/{project}/locations/{location}`.
func (*ProjectsLocationsServiceLbPoliciesService) Delete ¶
func (r *ProjectsLocationsServiceLbPoliciesService) Delete(name string) *ProjectsLocationsServiceLbPoliciesDeleteCall
Delete: Deletes a single ServiceLbPolicy.
- name: A name of the ServiceLbPolicy to delete. Must be in the format `projects/{project}/locations/{location}/serviceLbPolicies/*`.
func (*ProjectsLocationsServiceLbPoliciesService) Get ¶
func (r *ProjectsLocationsServiceLbPoliciesService) Get(name string) *ProjectsLocationsServiceLbPoliciesGetCall
Get: Gets details of a single ServiceLbPolicy.
- name: A name of the ServiceLbPolicy to get. Must be in the format `projects/{project}/locations/{location}/serviceLbPolicies/*`.
func (*ProjectsLocationsServiceLbPoliciesService) GetIamPolicy ¶
func (r *ProjectsLocationsServiceLbPoliciesService) GetIamPolicy(resource string) *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
- resource: REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsLocationsServiceLbPoliciesService) List ¶
func (r *ProjectsLocationsServiceLbPoliciesService) List(parent string) *ProjectsLocationsServiceLbPoliciesListCall
List: Lists ServiceLbPolicies in a given project and location.
- parent: The project and location from which the ServiceLbPolicies should be listed, specified in the format `projects/{project}/locations/{location}`.
func (*ProjectsLocationsServiceLbPoliciesService) Patch ¶
func (r *ProjectsLocationsServiceLbPoliciesService) Patch(name string, servicelbpolicy *ServiceLbPolicy) *ProjectsLocationsServiceLbPoliciesPatchCall
Patch: Updates the parameters of a single ServiceLbPolicy.
- name: Name of the ServiceLbPolicy resource. It matches pattern `projects/{project}/locations/{location}/serviceLbPolicies/{service_ lb_policy_name}`.
func (*ProjectsLocationsServiceLbPoliciesService) SetIamPolicy ¶
func (r *ProjectsLocationsServiceLbPoliciesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
- resource: REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
func (*ProjectsLocationsServiceLbPoliciesService) TestIamPermissions ¶
func (r *ProjectsLocationsServiceLbPoliciesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall
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.
- resource: REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
type ProjectsLocationsServiceLbPoliciesSetIamPolicyCall ¶
type ProjectsLocationsServiceLbPoliciesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) Context ¶
func (c *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) Do ¶
func (c *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "networkservices.projects.locations.serviceLbPolicies.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. 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 (*ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) Header ¶
func (c *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall ¶
type ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) Context ¶
func (c *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) Do ¶
func (c *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "networkservices.projects.locations.serviceLbPolicies.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. 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 (*ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) Fields ¶
func (c *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) Header ¶
func (c *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsTcpRoutesCreateCall ¶
type ProjectsLocationsTcpRoutesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTcpRoutesCreateCall) Context ¶
func (c *ProjectsLocationsTcpRoutesCreateCall) Context(ctx context.Context) *ProjectsLocationsTcpRoutesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTcpRoutesCreateCall) Do ¶
func (c *ProjectsLocationsTcpRoutesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.tcpRoutes.create" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsTcpRoutesCreateCall) Fields ¶
func (c *ProjectsLocationsTcpRoutesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTcpRoutesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTcpRoutesCreateCall) Header ¶
func (c *ProjectsLocationsTcpRoutesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsTcpRoutesCreateCall) TcpRouteId ¶
func (c *ProjectsLocationsTcpRoutesCreateCall) TcpRouteId(tcpRouteId string) *ProjectsLocationsTcpRoutesCreateCall
TcpRouteId sets the optional parameter "tcpRouteId": Required. Short name of the TcpRoute resource to be created.
type ProjectsLocationsTcpRoutesDeleteCall ¶
type ProjectsLocationsTcpRoutesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTcpRoutesDeleteCall) Context ¶
func (c *ProjectsLocationsTcpRoutesDeleteCall) Context(ctx context.Context) *ProjectsLocationsTcpRoutesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTcpRoutesDeleteCall) Do ¶
func (c *ProjectsLocationsTcpRoutesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.tcpRoutes.delete" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsTcpRoutesDeleteCall) Fields ¶
func (c *ProjectsLocationsTcpRoutesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTcpRoutesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTcpRoutesDeleteCall) Header ¶
func (c *ProjectsLocationsTcpRoutesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsTcpRoutesGetCall ¶
type ProjectsLocationsTcpRoutesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTcpRoutesGetCall) Context ¶
func (c *ProjectsLocationsTcpRoutesGetCall) Context(ctx context.Context) *ProjectsLocationsTcpRoutesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTcpRoutesGetCall) Do ¶
func (c *ProjectsLocationsTcpRoutesGetCall) Do(opts ...googleapi.CallOption) (*TcpRoute, error)
Do executes the "networkservices.projects.locations.tcpRoutes.get" call. Exactly one of *TcpRoute or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TcpRoute.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 (*ProjectsLocationsTcpRoutesGetCall) Fields ¶
func (c *ProjectsLocationsTcpRoutesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTcpRoutesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTcpRoutesGetCall) Header ¶
func (c *ProjectsLocationsTcpRoutesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsTcpRoutesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsTcpRoutesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTcpRoutesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsTcpRoutesListCall ¶
type ProjectsLocationsTcpRoutesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTcpRoutesListCall) Context ¶
func (c *ProjectsLocationsTcpRoutesListCall) Context(ctx context.Context) *ProjectsLocationsTcpRoutesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTcpRoutesListCall) Do ¶
func (c *ProjectsLocationsTcpRoutesListCall) Do(opts ...googleapi.CallOption) (*ListTcpRoutesResponse, error)
Do executes the "networkservices.projects.locations.tcpRoutes.list" call. Exactly one of *ListTcpRoutesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListTcpRoutesResponse.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 (*ProjectsLocationsTcpRoutesListCall) Fields ¶
func (c *ProjectsLocationsTcpRoutesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTcpRoutesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTcpRoutesListCall) Header ¶
func (c *ProjectsLocationsTcpRoutesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsTcpRoutesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsTcpRoutesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsTcpRoutesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsTcpRoutesListCall) PageSize ¶
func (c *ProjectsLocationsTcpRoutesListCall) PageSize(pageSize int64) *ProjectsLocationsTcpRoutesListCall
PageSize sets the optional parameter "pageSize": Maximum number of TcpRoutes to return per call.
func (*ProjectsLocationsTcpRoutesListCall) PageToken ¶
func (c *ProjectsLocationsTcpRoutesListCall) PageToken(pageToken string) *ProjectsLocationsTcpRoutesListCall
PageToken sets the optional parameter "pageToken": The value returned by the last `ListTcpRoutesResponse` Indicates that this is a continuation of a prior `ListTcpRoutes` call, and that the system should return the next page of data.
func (*ProjectsLocationsTcpRoutesListCall) Pages ¶
func (c *ProjectsLocationsTcpRoutesListCall) Pages(ctx context.Context, f func(*ListTcpRoutesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsTcpRoutesPatchCall ¶
type ProjectsLocationsTcpRoutesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTcpRoutesPatchCall) Context ¶
func (c *ProjectsLocationsTcpRoutesPatchCall) Context(ctx context.Context) *ProjectsLocationsTcpRoutesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTcpRoutesPatchCall) Do ¶
func (c *ProjectsLocationsTcpRoutesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.tcpRoutes.patch" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsTcpRoutesPatchCall) Fields ¶
func (c *ProjectsLocationsTcpRoutesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTcpRoutesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTcpRoutesPatchCall) Header ¶
func (c *ProjectsLocationsTcpRoutesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsTcpRoutesPatchCall) UpdateMask ¶
func (c *ProjectsLocationsTcpRoutesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTcpRoutesPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used to specify the fields to be overwritten in the TcpRoute 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.
type ProjectsLocationsTcpRoutesService ¶
type ProjectsLocationsTcpRoutesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsTcpRoutesService ¶
func NewProjectsLocationsTcpRoutesService(s *Service) *ProjectsLocationsTcpRoutesService
func (*ProjectsLocationsTcpRoutesService) Create ¶
func (r *ProjectsLocationsTcpRoutesService) Create(parent string, tcproute *TcpRoute) *ProjectsLocationsTcpRoutesCreateCall
Create: Creates a new TcpRoute in a given project and location.
- parent: The parent resource of the TcpRoute. Must be in the format `projects/*/locations/global`.
func (*ProjectsLocationsTcpRoutesService) Delete ¶
func (r *ProjectsLocationsTcpRoutesService) Delete(name string) *ProjectsLocationsTcpRoutesDeleteCall
Delete: Deletes a single TcpRoute.
- name: A name of the TcpRoute to delete. Must be in the format `projects/*/locations/global/tcpRoutes/*`.
func (*ProjectsLocationsTcpRoutesService) Get ¶
func (r *ProjectsLocationsTcpRoutesService) Get(name string) *ProjectsLocationsTcpRoutesGetCall
Get: Gets details of a single TcpRoute.
- name: A name of the TcpRoute to get. Must be in the format `projects/*/locations/global/tcpRoutes/*`.
func (*ProjectsLocationsTcpRoutesService) List ¶
func (r *ProjectsLocationsTcpRoutesService) List(parent string) *ProjectsLocationsTcpRoutesListCall
List: Lists TcpRoute in a given project and location.
- parent: The project and location from which the TcpRoutes should be listed, specified in the format `projects/*/locations/global`.
func (*ProjectsLocationsTcpRoutesService) Patch ¶
func (r *ProjectsLocationsTcpRoutesService) Patch(name string, tcproute *TcpRoute) *ProjectsLocationsTcpRoutesPatchCall
Patch: Updates the parameters of a single TcpRoute.
- name: Name of the TcpRoute resource. It matches pattern `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
type ProjectsLocationsTlsRoutesCreateCall ¶
type ProjectsLocationsTlsRoutesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTlsRoutesCreateCall) Context ¶
func (c *ProjectsLocationsTlsRoutesCreateCall) Context(ctx context.Context) *ProjectsLocationsTlsRoutesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTlsRoutesCreateCall) Do ¶
func (c *ProjectsLocationsTlsRoutesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.tlsRoutes.create" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsTlsRoutesCreateCall) Fields ¶
func (c *ProjectsLocationsTlsRoutesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTlsRoutesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTlsRoutesCreateCall) Header ¶
func (c *ProjectsLocationsTlsRoutesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsTlsRoutesCreateCall) TlsRouteId ¶
func (c *ProjectsLocationsTlsRoutesCreateCall) TlsRouteId(tlsRouteId string) *ProjectsLocationsTlsRoutesCreateCall
TlsRouteId sets the optional parameter "tlsRouteId": Required. Short name of the TlsRoute resource to be created.
type ProjectsLocationsTlsRoutesDeleteCall ¶
type ProjectsLocationsTlsRoutesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTlsRoutesDeleteCall) Context ¶
func (c *ProjectsLocationsTlsRoutesDeleteCall) Context(ctx context.Context) *ProjectsLocationsTlsRoutesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTlsRoutesDeleteCall) Do ¶
func (c *ProjectsLocationsTlsRoutesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.tlsRoutes.delete" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsTlsRoutesDeleteCall) Fields ¶
func (c *ProjectsLocationsTlsRoutesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTlsRoutesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTlsRoutesDeleteCall) Header ¶
func (c *ProjectsLocationsTlsRoutesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsTlsRoutesGetCall ¶
type ProjectsLocationsTlsRoutesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTlsRoutesGetCall) Context ¶
func (c *ProjectsLocationsTlsRoutesGetCall) Context(ctx context.Context) *ProjectsLocationsTlsRoutesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTlsRoutesGetCall) Do ¶
func (c *ProjectsLocationsTlsRoutesGetCall) Do(opts ...googleapi.CallOption) (*TlsRoute, error)
Do executes the "networkservices.projects.locations.tlsRoutes.get" call. Exactly one of *TlsRoute or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TlsRoute.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 (*ProjectsLocationsTlsRoutesGetCall) Fields ¶
func (c *ProjectsLocationsTlsRoutesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTlsRoutesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTlsRoutesGetCall) Header ¶
func (c *ProjectsLocationsTlsRoutesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsTlsRoutesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsTlsRoutesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTlsRoutesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsTlsRoutesListCall ¶
type ProjectsLocationsTlsRoutesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTlsRoutesListCall) Context ¶
func (c *ProjectsLocationsTlsRoutesListCall) Context(ctx context.Context) *ProjectsLocationsTlsRoutesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTlsRoutesListCall) Do ¶
func (c *ProjectsLocationsTlsRoutesListCall) Do(opts ...googleapi.CallOption) (*ListTlsRoutesResponse, error)
Do executes the "networkservices.projects.locations.tlsRoutes.list" call. Exactly one of *ListTlsRoutesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListTlsRoutesResponse.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 (*ProjectsLocationsTlsRoutesListCall) Fields ¶
func (c *ProjectsLocationsTlsRoutesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTlsRoutesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTlsRoutesListCall) Header ¶
func (c *ProjectsLocationsTlsRoutesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsTlsRoutesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsTlsRoutesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsTlsRoutesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsTlsRoutesListCall) PageSize ¶
func (c *ProjectsLocationsTlsRoutesListCall) PageSize(pageSize int64) *ProjectsLocationsTlsRoutesListCall
PageSize sets the optional parameter "pageSize": Maximum number of TlsRoutes to return per call.
func (*ProjectsLocationsTlsRoutesListCall) PageToken ¶
func (c *ProjectsLocationsTlsRoutesListCall) PageToken(pageToken string) *ProjectsLocationsTlsRoutesListCall
PageToken sets the optional parameter "pageToken": The value returned by the last `ListTlsRoutesResponse` Indicates that this is a continuation of a prior `ListTlsRoutes` call, and that the system should return the next page of data.
func (*ProjectsLocationsTlsRoutesListCall) Pages ¶
func (c *ProjectsLocationsTlsRoutesListCall) Pages(ctx context.Context, f func(*ListTlsRoutesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsTlsRoutesPatchCall ¶
type ProjectsLocationsTlsRoutesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsTlsRoutesPatchCall) Context ¶
func (c *ProjectsLocationsTlsRoutesPatchCall) Context(ctx context.Context) *ProjectsLocationsTlsRoutesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsTlsRoutesPatchCall) Do ¶
func (c *ProjectsLocationsTlsRoutesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "networkservices.projects.locations.tlsRoutes.patch" call. Exactly one of *Operation or error will be non-nil. 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 (*ProjectsLocationsTlsRoutesPatchCall) Fields ¶
func (c *ProjectsLocationsTlsRoutesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsTlsRoutesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsTlsRoutesPatchCall) Header ¶
func (c *ProjectsLocationsTlsRoutesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsTlsRoutesPatchCall) UpdateMask ¶
func (c *ProjectsLocationsTlsRoutesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsTlsRoutesPatchCall
UpdateMask sets the optional parameter "updateMask": Field mask is used to specify the fields to be overwritten in the TlsRoute 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.
type ProjectsLocationsTlsRoutesService ¶
type ProjectsLocationsTlsRoutesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsTlsRoutesService ¶
func NewProjectsLocationsTlsRoutesService(s *Service) *ProjectsLocationsTlsRoutesService
func (*ProjectsLocationsTlsRoutesService) Create ¶
func (r *ProjectsLocationsTlsRoutesService) Create(parent string, tlsroute *TlsRoute) *ProjectsLocationsTlsRoutesCreateCall
Create: Creates a new TlsRoute in a given project and location.
- parent: The parent resource of the TlsRoute. Must be in the format `projects/*/locations/global`.
func (*ProjectsLocationsTlsRoutesService) Delete ¶
func (r *ProjectsLocationsTlsRoutesService) Delete(name string) *ProjectsLocationsTlsRoutesDeleteCall
Delete: Deletes a single TlsRoute.
- name: A name of the TlsRoute to delete. Must be in the format `projects/*/locations/global/tlsRoutes/*`.
func (*ProjectsLocationsTlsRoutesService) Get ¶
func (r *ProjectsLocationsTlsRoutesService) Get(name string) *ProjectsLocationsTlsRoutesGetCall
Get: Gets details of a single TlsRoute.
- name: A name of the TlsRoute to get. Must be in the format `projects/*/locations/global/tlsRoutes/*`.
func (*ProjectsLocationsTlsRoutesService) List ¶
func (r *ProjectsLocationsTlsRoutesService) List(parent string) *ProjectsLocationsTlsRoutesListCall
List: Lists TlsRoute in a given project and location.
- parent: The project and location from which the TlsRoutes should be listed, specified in the format `projects/*/locations/global`.
func (*ProjectsLocationsTlsRoutesService) Patch ¶
func (r *ProjectsLocationsTlsRoutesService) Patch(name string, tlsroute *TlsRoute) *ProjectsLocationsTlsRoutesPatchCall
Patch: Updates the parameters of a single TlsRoute.
- name: Name of the TlsRoute resource. It matches pattern `projects/*/locations/global/tlsRoutes/tls_route_name>`.
type ProjectsService ¶
type ProjectsService struct { Locations *ProjectsLocationsService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
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
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func NewService ¶
NewService creates a new Service.
type ServiceBinding ¶
type ServiceBinding struct { // CreateTime: Output only. The timestamp when the resource was created. CreateTime string `json:"createTime,omitempty"` // Description: Optional. A free-text description of the resource. Max // length 1024 characters. Description string `json:"description,omitempty"` // Labels: Optional. Set of label tags associated with the // ServiceBinding resource. Labels map[string]string `json:"labels,omitempty"` // Name: Required. Name of the ServiceBinding resource. It matches // pattern // `projects/*/locations/global/serviceBindings/service_binding_name`. Name string `json:"name,omitempty"` // Service: Required. The full Service Directory Service name of the // format projects/*/locations/*/namespaces/*/services/* Service string `json:"service,omitempty"` // ServiceId: Output only. The unique identifier of the Service // Directory Service against which the Service Binding resource is // validated. This is populated when the Service Binding resource is // used in another resource (like Backend Service). This is of the UUID4 // format. ServiceId string `json:"serviceId,omitempty"` // UpdateTime: Output only. The timestamp when the resource was updated. 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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreateTime") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ServiceBinding: ServiceBinding is the resource that defines a Service Directory Service to be used in a BackendService resource.
func (*ServiceBinding) MarshalJSON ¶
func (s *ServiceBinding) MarshalJSON() ([]byte, error)
type ServiceLbPolicy ¶
type ServiceLbPolicy struct { // AutoCapacityDrain: Optional. Configuration to automatically move // traffic away for unhealthy IG/NEG for the associated Backend Service. AutoCapacityDrain *ServiceLbPolicyAutoCapacityDrain `json:"autoCapacityDrain,omitempty"` // CreateTime: Output only. The timestamp when this resource was // created. CreateTime string `json:"createTime,omitempty"` // Description: Optional. A free-text description of the resource. Max // length 1024 characters. Description string `json:"description,omitempty"` // FailoverConfig: Optional. Configuration related to health based // failover. FailoverConfig *ServiceLbPolicyFailoverConfig `json:"failoverConfig,omitempty"` // Labels: Optional. Set of label tags associated with the // ServiceLbPolicy resource. Labels map[string]string `json:"labels,omitempty"` // LoadBalancingAlgorithm: Optional. The type of load balancing // algorithm to be used. The default behavior is WATERFALL_BY_REGION. // // Possible values: // "LOAD_BALANCING_ALGORITHM_UNSPECIFIED" - The type of the // loadbalancing algorithm is unspecified. // "SPRAY_TO_WORLD" - Balance traffic across all backends across the // world proportionally based on capacity. // "SPRAY_TO_REGION" - Direct traffic to the nearest region with // endpoints and capacity before spilling over to other regions and // spread the traffic from each client to all the MIGs/NEGs in a region. // "WATERFALL_BY_REGION" - Direct traffic to the nearest region with // endpoints and capacity before spilling over to other regions. All // MIGs/NEGs within a region are evenly loaded but each client might not // spread the traffic to all the MIGs/NEGs in the region. // "WATERFALL_BY_ZONE" - Attempt to keep traffic in a single zone // closest to the client, before spilling over to other zones. LoadBalancingAlgorithm string `json:"loadBalancingAlgorithm,omitempty"` // Name: Required. Name of the ServiceLbPolicy resource. It matches // pattern // `projects/{project}/locations/{location}/serviceLbPolicies/{service_lb // _policy_name}`. Name string `json:"name,omitempty"` // UpdateTime: Output only. The timestamp when this resource was last // updated. 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. "AutoCapacityDrain") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AutoCapacityDrain") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ServiceLbPolicy: ServiceLbPolicy holds global load balancing and traffic distribution configuration that can be applied to a BackendService.
func (*ServiceLbPolicy) MarshalJSON ¶
func (s *ServiceLbPolicy) MarshalJSON() ([]byte, error)
type ServiceLbPolicyAutoCapacityDrain ¶
type ServiceLbPolicyAutoCapacityDrain struct { // Enable: Optional. If set to 'True', an unhealthy IG/NEG will be set // as drained. - An IG/NEG is considered unhealthy if less than 25% of // the instances/endpoints in the IG/NEG are healthy. - This option will // never result in draining more than 50% of the configured IGs/NEGs for // the Backend Service. Enable bool `json:"enable,omitempty"` // ForceSendFields is a list of field names (e.g. "Enable") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Enable") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ServiceLbPolicyAutoCapacityDrain: Option to specify if an unhealthy IG/NEG should be considered for global load balancing and traffic routing.
func (*ServiceLbPolicyAutoCapacityDrain) MarshalJSON ¶
func (s *ServiceLbPolicyAutoCapacityDrain) MarshalJSON() ([]byte, error)
type ServiceLbPolicyFailoverConfig ¶
type ServiceLbPolicyFailoverConfig struct { // FailoverHealthThreshold: Optional. The percentage threshold that a // load balancer will begin to send traffic to failover backends. If the // percentage of endpoints in a MIG/NEG is smaller than this value, // traffic would be sent to failover backends if possible. This field // should be set to a value between 1 and 99. The default value is 50 // for Global external HTTP(S) load balancer (classic) and Proxyless // service mesh, and 70 for others. FailoverHealthThreshold int64 `json:"failoverHealthThreshold,omitempty"` // ForceSendFields is a list of field names (e.g. // "FailoverHealthThreshold") to unconditionally include in API // requests. By default, fields with empty or default values are omitted // from API requests. However, any non-pointer, non-interface field // appearing in ForceSendFields will be sent to the server regardless of // whether the field is empty or not. This may be used to include empty // fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FailoverHealthThreshold") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ServiceLbPolicyFailoverConfig: Option to specify health based failover behavior. This is not related to Network load balancer FailoverPolicy.
func (*ServiceLbPolicyFailoverConfig) MarshalJSON ¶
func (s *ServiceLbPolicyFailoverConfig) MarshalJSON() ([]byte, error)
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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Policy") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Code") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
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 ¶
type TcpRoute ¶
type TcpRoute struct { // CreateTime: Output only. The timestamp when the resource was created. CreateTime string `json:"createTime,omitempty"` // Description: Optional. A free-text description of the resource. Max // length 1024 characters. Description string `json:"description,omitempty"` // Gateways: Optional. Gateways defines a list of gateways this TcpRoute // is attached to, as one of the routing rules to route the requests // served by the gateway. Each gateway reference should match the // pattern: `projects/*/locations/global/gateways/` Gateways []string `json:"gateways,omitempty"` // Labels: Optional. Set of label tags associated with the TcpRoute // resource. Labels map[string]string `json:"labels,omitempty"` // Meshes: Optional. Meshes defines a list of meshes this TcpRoute is // attached to, as one of the routing rules to route the requests served // by the mesh. Each mesh reference should match the pattern: // `projects/*/locations/global/meshes/` The attached Mesh should be of // a type SIDECAR Meshes []string `json:"meshes,omitempty"` // Name: Required. Name of the TcpRoute resource. It matches pattern // `projects/*/locations/global/tcpRoutes/tcp_route_name>`. Name string `json:"name,omitempty"` // Rules: Required. Rules that define how traffic is routed and handled. // At least one RouteRule must be supplied. If there are multiple rules // then the action taken will be the first rule to match. Rules []*TcpRouteRouteRule `json:"rules,omitempty"` // SelfLink: Output only. Server-defined URL of this resource SelfLink string `json:"selfLink,omitempty"` // UpdateTime: Output only. The timestamp when the resource was updated. 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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreateTime") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TcpRoute: TcpRoute is the resource defining how TCP traffic should be routed by a Mesh/Gateway resource.
func (*TcpRoute) MarshalJSON ¶
type TcpRouteRouteAction ¶
type TcpRouteRouteAction struct { // Destinations: Optional. The destination services to which traffic // should be forwarded. At least one destination service is required. // Only one of route destination or original destination can be set. Destinations []*TcpRouteRouteDestination `json:"destinations,omitempty"` // OriginalDestination: Optional. If true, Router will use the // destination IP and port of the original connection as the destination // of the request. Default is false. Only one of route destinations or // original destination can be set. OriginalDestination bool `json:"originalDestination,omitempty"` // ForceSendFields is a list of field names (e.g. "Destinations") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Destinations") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TcpRouteRouteAction: The specifications for routing traffic and applying associated policies.
func (*TcpRouteRouteAction) MarshalJSON ¶
func (s *TcpRouteRouteAction) MarshalJSON() ([]byte, error)
type TcpRouteRouteDestination ¶
type TcpRouteRouteDestination struct { // ServiceName: Required. The URL of a BackendService to route traffic // to. ServiceName string `json:"serviceName,omitempty"` // Weight: Optional. Specifies the proportion of requests forwarded to // the backend referenced by the serviceName field. This is computed as: // - weight/Sum(weights in this destination list). For non-zero values, // there may be some epsilon from the exact proportion defined here // depending on the precision an implementation supports. If only one // serviceName is specified and it has a weight greater than 0, 100% of // the traffic is forwarded to that backend. If weights are specified // for any one service name, they need to be specified for all of them. // If weights are unspecified for all services, then, traffic is // distributed in equal proportions to all of them. Weight int64 `json:"weight,omitempty"` // ForceSendFields is a list of field names (e.g. "ServiceName") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ServiceName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TcpRouteRouteDestination: Describe the destination for traffic to be routed to.
func (*TcpRouteRouteDestination) MarshalJSON ¶
func (s *TcpRouteRouteDestination) MarshalJSON() ([]byte, error)
type TcpRouteRouteMatch ¶
type TcpRouteRouteMatch struct { // Address: Required. Must be specified in the CIDR range format. A CIDR // range consists of an IP Address and a prefix length to construct the // subnet mask. By default, the prefix length is 32 (i.e. matches a // single IP address). Only IPV4 addresses are supported. Examples: // "10.0.0.1" - matches against this exact IP address. "10.0.0.0/8" - // matches against any IP address within the 10.0.0.0 subnet and // 255.255.255.0 mask. "0.0.0.0/0" - matches against any IP address'. Address string `json:"address,omitempty"` // Port: Required. Specifies the destination port to match against. Port string `json:"port,omitempty"` // ForceSendFields is a list of field names (e.g. "Address") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Address") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TcpRouteRouteMatch: RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
func (*TcpRouteRouteMatch) MarshalJSON ¶
func (s *TcpRouteRouteMatch) MarshalJSON() ([]byte, error)
type TcpRouteRouteRule ¶
type TcpRouteRouteRule struct { // Action: Required. The detailed rule defining how to route matched // traffic. Action *TcpRouteRouteAction `json:"action,omitempty"` // Matches: Optional. RouteMatch defines the predicate used to match // requests to a given action. Multiple match types are "OR"ed for // evaluation. If no routeMatch field is specified, this rule will // unconditionally match traffic. Matches []*TcpRouteRouteMatch `json:"matches,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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Action") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TcpRouteRouteRule: Specifies how to match traffic and how to route traffic when traffic is matched.
func (*TcpRouteRouteRule) MarshalJSON ¶
func (s *TcpRouteRouteRule) 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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Permissions") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Permissions") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TestIamPermissionsResponse: Response message for `TestIamPermissions` method.
func (*TestIamPermissionsResponse) MarshalJSON ¶
func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error)
type TlsRoute ¶
type TlsRoute struct { // CreateTime: Output only. The timestamp when the resource was created. CreateTime string `json:"createTime,omitempty"` // Description: Optional. A free-text description of the resource. Max // length 1024 characters. Description string `json:"description,omitempty"` // Gateways: Optional. Gateways defines a list of gateways this TlsRoute // is attached to, as one of the routing rules to route the requests // served by the gateway. Each gateway reference should match the // pattern: `projects/*/locations/global/gateways/` Gateways []string `json:"gateways,omitempty"` // Labels: Optional. Set of label tags associated with the TlsRoute // resource. Labels map[string]string `json:"labels,omitempty"` // Meshes: Optional. Meshes defines a list of meshes this TlsRoute is // attached to, as one of the routing rules to route the requests served // by the mesh. Each mesh reference should match the pattern: // `projects/*/locations/global/meshes/` The attached Mesh should be of // a type SIDECAR Meshes []string `json:"meshes,omitempty"` // Name: Required. Name of the TlsRoute resource. It matches pattern // `projects/*/locations/global/tlsRoutes/tls_route_name>`. Name string `json:"name,omitempty"` // Rules: Required. Rules that define how traffic is routed and handled. // At least one RouteRule must be supplied. If there are multiple rules // then the action taken will be the first rule to match. Rules []*TlsRouteRouteRule `json:"rules,omitempty"` // SelfLink: Output only. Server-defined URL of this resource SelfLink string `json:"selfLink,omitempty"` // UpdateTime: Output only. The timestamp when the resource was updated. 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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreateTime") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TlsRoute: TlsRoute defines how traffic should be routed based on SNI and other matching L3 attributes.
func (*TlsRoute) MarshalJSON ¶
type TlsRouteRouteAction ¶
type TlsRouteRouteAction struct { // Destinations: Required. The destination services to which traffic // should be forwarded. At least one destination service is required. Destinations []*TlsRouteRouteDestination `json:"destinations,omitempty"` // ForceSendFields is a list of field names (e.g. "Destinations") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Destinations") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TlsRouteRouteAction: The specifications for routing traffic and applying associated policies.
func (*TlsRouteRouteAction) MarshalJSON ¶
func (s *TlsRouteRouteAction) MarshalJSON() ([]byte, error)
type TlsRouteRouteDestination ¶
type TlsRouteRouteDestination struct { // ServiceName: Required. The URL of a BackendService to route traffic // to. ServiceName string `json:"serviceName,omitempty"` // Weight: Optional. Specifies the proportion of requests forwareded to // the backend referenced by the service_name field. This is computed // as: - weight/Sum(weights in destinations) Weights in all destinations // does not need to sum up to 100. Weight int64 `json:"weight,omitempty"` // ForceSendFields is a list of field names (e.g. "ServiceName") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ServiceName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TlsRouteRouteDestination: Describe the destination for traffic to be routed to.
func (*TlsRouteRouteDestination) MarshalJSON ¶
func (s *TlsRouteRouteDestination) MarshalJSON() ([]byte, error)
type TlsRouteRouteMatch ¶
type TlsRouteRouteMatch struct { // Alpn: Optional. ALPN (Application-Layer Protocol Negotiation) to // match against. Examples: "http/1.1", "h2". At least one of sni_host // and alpn is required. Up to 5 alpns across all matches can be set. Alpn []string `json:"alpn,omitempty"` // SniHost: Optional. SNI (server name indicator) to match against. SNI // will be matched against all wildcard domains, i.e. `www.example.com` // will be first matched against `www.example.com`, then // `*.example.com`, then `*.com.` Partial wildcards are not supported, // and values like *w.example.com are invalid. At least one of sni_host // and alpn is required. Up to 5 sni hosts across all matches can be // set. SniHost []string `json:"sniHost,omitempty"` // ForceSendFields is a list of field names (e.g. "Alpn") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Alpn") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TlsRouteRouteMatch: RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "AND"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
func (*TlsRouteRouteMatch) MarshalJSON ¶
func (s *TlsRouteRouteMatch) MarshalJSON() ([]byte, error)
type TlsRouteRouteRule ¶
type TlsRouteRouteRule struct { // Action: Required. The detailed rule defining how to route matched // traffic. Action *TlsRouteRouteAction `json:"action,omitempty"` // Matches: Required. RouteMatch defines the predicate used to match // requests to a given action. Multiple match types are "OR"ed for // evaluation. Matches []*TlsRouteRouteMatch `json:"matches,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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Action") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TlsRouteRouteRule: Specifies how to match traffic and how to route traffic when traffic is matched.
func (*TlsRouteRouteRule) MarshalJSON ¶
func (s *TlsRouteRouteRule) MarshalJSON() ([]byte, error)
type TrafficPortSelector ¶
type TrafficPortSelector struct { // Ports: Optional. A list of ports. Can be port numbers or port range // (example, [80-90] specifies all ports from 80 to 90, including 80 and // 90) or named ports or * to specify all ports. If the list is empty, // all ports are selected. Ports []string `json:"ports,omitempty"` // ForceSendFields is a list of field names (e.g. "Ports") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Ports") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TrafficPortSelector: Specification of a port-based selector.
func (*TrafficPortSelector) MarshalJSON ¶
func (s *TrafficPortSelector) MarshalJSON() ([]byte, error)