Documentation ¶
Overview ¶
Package cloud implements a more golang friendly interface to the GCE compute API. The code in this package is generated automatically via the generator implemented in "gen/main.go". The code generator creates the basic CRUD actions for the given resource: "Insert", "Get", "List" and "Delete". Additional methods by customizing the ServiceInfo object (see below). Generated code includes a full mock of the GCE compute API.
Usage ¶
The root of the GCE compute API is the interface "Cloud". Code written using Cloud can be used against the actual implementation "GCE" or "MockGCE".
func foo(cloud Cloud) { igs, err := cloud.InstanceGroups().List(ctx, "us-central1-b", filter.None) ... } // Run foo against the actual cloud. foo(NewGCE(&Service{...})) // Run foo with a mock. foo(NewMockGCE())
Rate limiting and routing ¶
The generated code allows for custom policies for operation rate limiting and GCE project routing. See RateLimiter and ProjectRouter for more details.
Mocks ¶
Mocks are automatically generated for each type implementing basic logic for resource manipulation. This eliminates the boilerplate required to mock GCE functionality. Each method will also have a corresponding "xxxHook" function generated in the mock structure where unit test code can hook the execution of the method.
Mocks for different versions of the same service will share the same set of objects, i.e. an alpha object will be visible with beta and GA methods. Note that translation is done with JSON serialization between the API versions.
Changing service code generation ¶
The list of services to generate is contained in "meta/meta.go". To add a service, add an entry to the list "meta.AllServices". An example entry:
&ServiceInfo{ Object: "InstanceGroup", // Name of the object type. Service: "InstanceGroups", // Name of the service. Resource: "instanceGroups", // Lowercase resource name (as appears in the URL). version: meta.VersionAlpha, // API version (one entry per version is needed). keyType: Zonal, // What kind of resource this is. serviceType: reflect.TypeOf(&alpha.InstanceGroupsService{}), // Associated golang type. additionalMethods: []string{ // Additional methods to generate code for. "SetNamedPorts", }, options: <options> // Or'd ("|") together. }
Read-only objects ¶
Services such as Regions and Zones do not allow for mutations. Specify "ReadOnly" in ServiceInfo.options to omit the mutation methods.
Adding custom methods ¶
Some methods that may not be properly handled by the generated code. To enable addition of custom code to the generated mocks, set the "CustomOps" option in "meta.ServiceInfo" entry. This will make the generated service interface embed a "<ServiceName>Ops" interface. This interface MUST be written by hand and contain the custom method logic. Corresponding methods must be added to the corresponding Mockxxx and GCExxx struct types.
// In "meta/meta.go": &ServiceInfo{ Object: "InstanceGroup", ... options: CustomOps, } // In the generated code "gen.go": type InstanceGroups interface { InstanceGroupsOps // Added by CustomOps option. ... } // In hand written file: type InstanceGroupsOps interface { MyMethod() } func (mock *MockInstanceGroups) MyMethod() { // Custom mock implementation. } func (gce *GCEInstanceGroups) MyMethod() { // Custom implementation. }
Update generated codes ¶
Run hack/update-cloudprovider-gce.sh to update the generated codes.
Index ¶
- Constants
- Variables
- func ContextWithCallTimeout() (context.Context, context.CancelFunc)
- func RelativeResourceName(project, resource string, key *meta.Key) string
- func ResourcePath(resource string, key *meta.Key) string
- func SelfLink(ver meta.Version, project, resource string, key *meta.Key) string
- func SelfLinkWithGroup(apiGroup meta.APIGroup, ver meta.Version, project, resource string, ...) string
- func SetAPIDomain(domain string)
- func WithCallObserver(ctx context.Context, obs CallObserver) context.Context
- type AcceptRateLimiter
- type Addresses
- type AlphaAddresses
- type AlphaBackendServices
- type AlphaFirewalls
- type AlphaForwardingRules
- type AlphaGlobalAddresses
- type AlphaGlobalForwardingRules
- type AlphaGlobalNetworkEndpointGroups
- type AlphaHealthChecks
- type AlphaImages
- type AlphaInstances
- type AlphaNetworkEndpointGroups
- type AlphaNetworkFirewallPolicies
- type AlphaNetworks
- type AlphaRegionBackendServices
- type AlphaRegionHealthChecks
- type AlphaRegionNetworkEndpointGroups
- type AlphaRegionNetworkFirewallPolicies
- type AlphaRegionSslCertificates
- type AlphaRegionTargetHttpProxies
- type AlphaRegionTargetHttpsProxies
- type AlphaRegionUrlMaps
- type AlphaRouters
- type AlphaServiceAttachments
- type AlphaSslCertificates
- type AlphaSubnetworks
- type AlphaTargetHttpProxies
- type AlphaTargetHttpsProxies
- type AlphaTargetTcpProxies
- type AlphaUrlMaps
- type BackendServices
- type BetaAddresses
- type BetaBackendServices
- type BetaFirewalls
- type BetaForwardingRules
- type BetaGlobalAddresses
- type BetaGlobalForwardingRules
- type BetaGlobalNetworkEndpointGroups
- type BetaHealthChecks
- type BetaImages
- type BetaInstances
- type BetaMeshes
- type BetaNetworkEndpointGroups
- type BetaNetworks
- type BetaRegionBackendServices
- type BetaRegionHealthChecks
- type BetaRegionNetworkEndpointGroups
- type BetaRegionSslCertificates
- type BetaRegionTargetHttpProxies
- type BetaRegionTargetHttpsProxies
- type BetaRegionUrlMaps
- type BetaRouters
- type BetaSecurityPolicies
- type BetaServiceAttachments
- type BetaSslCertificates
- type BetaSubnetworks
- type BetaTargetHttpProxies
- type BetaTargetHttpsProxies
- type BetaTargetTcpProxies
- type BetaTcpRoutes
- type BetaUrlMaps
- type CallContextKey
- type CallObserver
- type Cloud
- type CompositeRateLimiter
- type Disks
- type Firewalls
- type ForwardingRules
- type GCE
- func (gce *GCE) Addresses() Addresses
- func (gce *GCE) AlphaAddresses() AlphaAddresses
- func (gce *GCE) AlphaBackendServices() AlphaBackendServices
- func (gce *GCE) AlphaFirewalls() AlphaFirewalls
- func (gce *GCE) AlphaForwardingRules() AlphaForwardingRules
- func (gce *GCE) AlphaGlobalAddresses() AlphaGlobalAddresses
- func (gce *GCE) AlphaGlobalForwardingRules() AlphaGlobalForwardingRules
- func (gce *GCE) AlphaGlobalNetworkEndpointGroups() AlphaGlobalNetworkEndpointGroups
- func (gce *GCE) AlphaHealthChecks() AlphaHealthChecks
- func (gce *GCE) AlphaImages() AlphaImages
- func (gce *GCE) AlphaInstances() AlphaInstances
- func (gce *GCE) AlphaNetworkEndpointGroups() AlphaNetworkEndpointGroups
- func (gce *GCE) AlphaNetworkFirewallPolicies() AlphaNetworkFirewallPolicies
- func (gce *GCE) AlphaNetworks() AlphaNetworks
- func (gce *GCE) AlphaRegionBackendServices() AlphaRegionBackendServices
- func (gce *GCE) AlphaRegionHealthChecks() AlphaRegionHealthChecks
- func (gce *GCE) AlphaRegionNetworkEndpointGroups() AlphaRegionNetworkEndpointGroups
- func (gce *GCE) AlphaRegionNetworkFirewallPolicies() AlphaRegionNetworkFirewallPolicies
- func (gce *GCE) AlphaRegionSslCertificates() AlphaRegionSslCertificates
- func (gce *GCE) AlphaRegionTargetHttpProxies() AlphaRegionTargetHttpProxies
- func (gce *GCE) AlphaRegionTargetHttpsProxies() AlphaRegionTargetHttpsProxies
- func (gce *GCE) AlphaRegionUrlMaps() AlphaRegionUrlMaps
- func (gce *GCE) AlphaRouters() AlphaRouters
- func (gce *GCE) AlphaServiceAttachments() AlphaServiceAttachments
- func (gce *GCE) AlphaSslCertificates() AlphaSslCertificates
- func (gce *GCE) AlphaSubnetworks() AlphaSubnetworks
- func (gce *GCE) AlphaTargetHttpProxies() AlphaTargetHttpProxies
- func (gce *GCE) AlphaTargetHttpsProxies() AlphaTargetHttpsProxies
- func (gce *GCE) AlphaTargetTcpProxies() AlphaTargetTcpProxies
- func (gce *GCE) AlphaUrlMaps() AlphaUrlMaps
- func (gce *GCE) BackendServices() BackendServices
- func (gce *GCE) BetaAddresses() BetaAddresses
- func (gce *GCE) BetaBackendServices() BetaBackendServices
- func (gce *GCE) BetaFirewalls() BetaFirewalls
- func (gce *GCE) BetaForwardingRules() BetaForwardingRules
- func (gce *GCE) BetaGlobalAddresses() BetaGlobalAddresses
- func (gce *GCE) BetaGlobalForwardingRules() BetaGlobalForwardingRules
- func (gce *GCE) BetaGlobalNetworkEndpointGroups() BetaGlobalNetworkEndpointGroups
- func (gce *GCE) BetaHealthChecks() BetaHealthChecks
- func (gce *GCE) BetaImages() BetaImages
- func (gce *GCE) BetaInstances() BetaInstances
- func (gce *GCE) BetaMeshes() BetaMeshes
- func (gce *GCE) BetaNetworkEndpointGroups() BetaNetworkEndpointGroups
- func (gce *GCE) BetaNetworks() BetaNetworks
- func (gce *GCE) BetaRegionBackendServices() BetaRegionBackendServices
- func (gce *GCE) BetaRegionHealthChecks() BetaRegionHealthChecks
- func (gce *GCE) BetaRegionNetworkEndpointGroups() BetaRegionNetworkEndpointGroups
- func (gce *GCE) BetaRegionSslCertificates() BetaRegionSslCertificates
- func (gce *GCE) BetaRegionTargetHttpProxies() BetaRegionTargetHttpProxies
- func (gce *GCE) BetaRegionTargetHttpsProxies() BetaRegionTargetHttpsProxies
- func (gce *GCE) BetaRegionUrlMaps() BetaRegionUrlMaps
- func (gce *GCE) BetaRouters() BetaRouters
- func (gce *GCE) BetaSecurityPolicies() BetaSecurityPolicies
- func (gce *GCE) BetaServiceAttachments() BetaServiceAttachments
- func (gce *GCE) BetaSslCertificates() BetaSslCertificates
- func (gce *GCE) BetaSubnetworks() BetaSubnetworks
- func (gce *GCE) BetaTargetHttpProxies() BetaTargetHttpProxies
- func (gce *GCE) BetaTargetHttpsProxies() BetaTargetHttpsProxies
- func (gce *GCE) BetaTargetTcpProxies() BetaTargetTcpProxies
- func (gce *GCE) BetaTcpRoutes() BetaTcpRoutes
- func (gce *GCE) BetaUrlMaps() BetaUrlMaps
- func (gce *GCE) Disks() Disks
- func (gce *GCE) Firewalls() Firewalls
- func (gce *GCE) ForwardingRules() ForwardingRules
- func (gce *GCE) GlobalAddresses() GlobalAddresses
- func (gce *GCE) GlobalForwardingRules() GlobalForwardingRules
- func (gce *GCE) GlobalNetworkEndpointGroups() GlobalNetworkEndpointGroups
- func (gce *GCE) HealthChecks() HealthChecks
- func (gce *GCE) HttpHealthChecks() HttpHealthChecks
- func (gce *GCE) HttpsHealthChecks() HttpsHealthChecks
- func (gce *GCE) Images() Images
- func (gce *GCE) InstanceGroupManagers() InstanceGroupManagers
- func (gce *GCE) InstanceGroups() InstanceGroups
- func (gce *GCE) InstanceTemplates() InstanceTemplates
- func (gce *GCE) Instances() Instances
- func (gce *GCE) Meshes() Meshes
- func (gce *GCE) NetworkEndpointGroups() NetworkEndpointGroups
- func (gce *GCE) Networks() Networks
- func (gce *GCE) Projects() Projects
- func (gce *GCE) RegionBackendServices() RegionBackendServices
- func (gce *GCE) RegionDisks() RegionDisks
- func (gce *GCE) RegionHealthChecks() RegionHealthChecks
- func (gce *GCE) RegionNetworkEndpointGroups() RegionNetworkEndpointGroups
- func (gce *GCE) RegionSslCertificates() RegionSslCertificates
- func (gce *GCE) RegionSslPolicies() RegionSslPolicies
- func (gce *GCE) RegionTargetHttpProxies() RegionTargetHttpProxies
- func (gce *GCE) RegionTargetHttpsProxies() RegionTargetHttpsProxies
- func (gce *GCE) RegionUrlMaps() RegionUrlMaps
- func (gce *GCE) Regions() Regions
- func (gce *GCE) Routers() Routers
- func (gce *GCE) Routes() Routes
- func (gce *GCE) ServiceAttachments() ServiceAttachments
- func (gce *GCE) SslCertificates() SslCertificates
- func (gce *GCE) SslPolicies() SslPolicies
- func (gce *GCE) Subnetworks() Subnetworks
- func (gce *GCE) TargetHttpProxies() TargetHttpProxies
- func (gce *GCE) TargetHttpsProxies() TargetHttpsProxies
- func (gce *GCE) TargetPools() TargetPools
- func (gce *GCE) TargetTcpProxies() TargetTcpProxies
- func (gce *GCE) TcpRoutes() TcpRoutes
- func (gce *GCE) UrlMaps() UrlMaps
- func (gce *GCE) Zones() Zones
- type GCEAddresses
- func (g *GCEAddresses) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computega.Address, error)
- func (g *GCEAddresses) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Address, error)
- func (g *GCEAddresses) Insert(ctx context.Context, key *meta.Key, obj *computega.Address, options ...Option) error
- func (g *GCEAddresses) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.Address, error)
- type GCEAlphaAddresses
- func (g *GCEAlphaAddresses) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computealpha.Address, error)
- func (g *GCEAlphaAddresses) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Address, error)
- func (g *GCEAlphaAddresses) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Address, ...) error
- func (g *GCEAlphaAddresses) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.Address, error)
- type GCEAlphaBackendServices
- func (g *GCEAlphaBackendServices) AddSignedUrlKey(ctx context.Context, key *meta.Key, arg0 *computealpha.SignedUrlKey, ...) error
- func (g *GCEAlphaBackendServices) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computealpha.BackendService, error)
- func (g *GCEAlphaBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaBackendServices) DeleteSignedUrlKey(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
- func (g *GCEAlphaBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.BackendService, error)
- func (g *GCEAlphaBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computealpha.BackendService, ...) error
- func (g *GCEAlphaBackendServices) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.BackendService, error)
- func (g *GCEAlphaBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.BackendService, ...) error
- func (g *GCEAlphaBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.SecurityPolicyReference, ...) error
- func (g *GCEAlphaBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.BackendService, ...) error
- type GCEAlphaFirewalls
- func (g *GCEAlphaFirewalls) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaFirewalls) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Firewall, error)
- func (g *GCEAlphaFirewalls) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Firewall, ...) error
- func (g *GCEAlphaFirewalls) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.Firewall, error)
- func (g *GCEAlphaFirewalls) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.Firewall, ...) error
- func (g *GCEAlphaFirewalls) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.Firewall, ...) error
- type GCEAlphaForwardingRules
- func (g *GCEAlphaForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.ForwardingRule, error)
- func (g *GCEAlphaForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computealpha.ForwardingRule, ...) error
- func (g *GCEAlphaForwardingRules) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.ForwardingRule, error)
- func (g *GCEAlphaForwardingRules) SetLabels(ctx context.Context, key *meta.Key, arg0 *computealpha.RegionSetLabelsRequest, ...) error
- func (g *GCEAlphaForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *computealpha.TargetReference, ...) error
- type GCEAlphaGlobalAddresses
- func (g *GCEAlphaGlobalAddresses) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaGlobalAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Address, error)
- func (g *GCEAlphaGlobalAddresses) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Address, ...) error
- func (g *GCEAlphaGlobalAddresses) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.Address, error)
- type GCEAlphaGlobalForwardingRules
- func (g *GCEAlphaGlobalForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaGlobalForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.ForwardingRule, error)
- func (g *GCEAlphaGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computealpha.ForwardingRule, ...) error
- func (g *GCEAlphaGlobalForwardingRules) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.ForwardingRule, error)
- func (g *GCEAlphaGlobalForwardingRules) SetLabels(ctx context.Context, key *meta.Key, arg0 *computealpha.GlobalSetLabelsRequest, ...) error
- func (g *GCEAlphaGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *computealpha.TargetReference, ...) error
- type GCEAlphaGlobalNetworkEndpointGroups
- func (g *GCEAlphaGlobalNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEAlphaGlobalNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaGlobalNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEAlphaGlobalNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.NetworkEndpointGroup, error)
- func (g *GCEAlphaGlobalNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computealpha.NetworkEndpointGroup, ...) error
- func (g *GCEAlphaGlobalNetworkEndpointGroups) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointGroup, error)
- func (g *GCEAlphaGlobalNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointWithHealthStatus, error)
- type GCEAlphaHealthChecks
- func (g *GCEAlphaHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.HealthCheck, error)
- func (g *GCEAlphaHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computealpha.HealthCheck, ...) error
- func (g *GCEAlphaHealthChecks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.HealthCheck, error)
- func (g *GCEAlphaHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.HealthCheck, ...) error
- type GCEAlphaImages
- func (g *GCEAlphaImages) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaImages) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Image, error)
- func (g *GCEAlphaImages) GetFromFamily(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Image, error)
- func (g *GCEAlphaImages) GetIamPolicy(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Policy, error)
- func (g *GCEAlphaImages) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Image, options ...Option) error
- func (g *GCEAlphaImages) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.Image, error)
- func (g *GCEAlphaImages) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.Image, ...) error
- func (g *GCEAlphaImages) SetIamPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.GlobalSetPolicyRequest, ...) (*computealpha.Policy, error)
- func (g *GCEAlphaImages) SetLabels(ctx context.Context, key *meta.Key, arg0 *computealpha.GlobalSetLabelsRequest, ...) error
- func (g *GCEAlphaImages) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computealpha.TestPermissionsRequest, ...) (*computealpha.TestPermissionsResponse, error)
- type GCEAlphaInstances
- func (g *GCEAlphaInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *computealpha.AttachedDisk, ...) error
- func (g *GCEAlphaInstances) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaInstances) DetachDisk(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
- func (g *GCEAlphaInstances) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Instance, error)
- func (g *GCEAlphaInstances) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Instance, ...) error
- func (g *GCEAlphaInstances) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computealpha.Instance, error)
- func (g *GCEAlphaInstances) UpdateNetworkInterface(ctx context.Context, key *meta.Key, arg0 string, ...) error
- type GCEAlphaNetworkEndpointGroups
- func (g *GCEAlphaNetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computealpha.NetworkEndpointGroup, error)
- func (g *GCEAlphaNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEAlphaNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEAlphaNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.NetworkEndpointGroup, error)
- func (g *GCEAlphaNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computealpha.NetworkEndpointGroup, ...) error
- func (g *GCEAlphaNetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointGroup, error)
- func (g *GCEAlphaNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, ...) ([]*computealpha.NetworkEndpointWithHealthStatus, error)
- type GCEAlphaNetworkFirewallPolicies
- func (g *GCEAlphaNetworkFirewallPolicies) AddAssociation(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEAlphaNetworkFirewallPolicies) AddRule(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicyRule, ...) error
- func (g *GCEAlphaNetworkFirewallPolicies) CloneRules(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaNetworkFirewallPolicies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaNetworkFirewallPolicies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicy, error)
- func (g *GCEAlphaNetworkFirewallPolicies) GetAssociation(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicyAssociation, error)
- func (g *GCEAlphaNetworkFirewallPolicies) GetIamPolicy(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Policy, error)
- func (g *GCEAlphaNetworkFirewallPolicies) GetRule(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicyRule, error)
- func (g *GCEAlphaNetworkFirewallPolicies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.FirewallPolicy, ...) error
- func (g *GCEAlphaNetworkFirewallPolicies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.FirewallPolicy, error)
- func (g *GCEAlphaNetworkFirewallPolicies) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicy, ...) error
- func (g *GCEAlphaNetworkFirewallPolicies) PatchRule(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicyRule, ...) error
- func (g *GCEAlphaNetworkFirewallPolicies) RemoveAssociation(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaNetworkFirewallPolicies) RemoveRule(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaNetworkFirewallPolicies) SetIamPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.GlobalSetPolicyRequest, ...) (*computealpha.Policy, error)
- func (g *GCEAlphaNetworkFirewallPolicies) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computealpha.TestPermissionsRequest, ...) (*computealpha.TestPermissionsResponse, error)
- type GCEAlphaNetworks
- func (g *GCEAlphaNetworks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaNetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Network, error)
- func (g *GCEAlphaNetworks) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Network, ...) error
- func (g *GCEAlphaNetworks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.Network, error)
- type GCEAlphaRegionBackendServices
- func (g *GCEAlphaRegionBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaRegionBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.BackendService, error)
- func (g *GCEAlphaRegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *computealpha.ResourceGroupReference, ...) (*computealpha.BackendServiceGroupHealth, error)
- func (g *GCEAlphaRegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computealpha.BackendService, ...) error
- func (g *GCEAlphaRegionBackendServices) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.BackendService, error)
- func (g *GCEAlphaRegionBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.BackendService, ...) error
- func (g *GCEAlphaRegionBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.SecurityPolicyReference, ...) error
- func (g *GCEAlphaRegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.BackendService, ...) error
- type GCEAlphaRegionHealthChecks
- func (g *GCEAlphaRegionHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaRegionHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.HealthCheck, error)
- func (g *GCEAlphaRegionHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computealpha.HealthCheck, ...) error
- func (g *GCEAlphaRegionHealthChecks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.HealthCheck, error)
- func (g *GCEAlphaRegionHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.HealthCheck, ...) error
- type GCEAlphaRegionNetworkEndpointGroups
- func (g *GCEAlphaRegionNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEAlphaRegionNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaRegionNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEAlphaRegionNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.NetworkEndpointGroup, error)
- func (g *GCEAlphaRegionNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computealpha.NetworkEndpointGroup, ...) error
- func (g *GCEAlphaRegionNetworkEndpointGroups) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointGroup, error)
- func (g *GCEAlphaRegionNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointWithHealthStatus, error)
- type GCEAlphaRegionNetworkFirewallPolicies
- func (g *GCEAlphaRegionNetworkFirewallPolicies) AddAssociation(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEAlphaRegionNetworkFirewallPolicies) AddRule(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicyRule, ...) error
- func (g *GCEAlphaRegionNetworkFirewallPolicies) CloneRules(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaRegionNetworkFirewallPolicies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaRegionNetworkFirewallPolicies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicy, error)
- func (g *GCEAlphaRegionNetworkFirewallPolicies) GetAssociation(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicyAssociation, error)
- func (g *GCEAlphaRegionNetworkFirewallPolicies) GetIamPolicy(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Policy, error)
- func (g *GCEAlphaRegionNetworkFirewallPolicies) GetRule(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicyRule, error)
- func (g *GCEAlphaRegionNetworkFirewallPolicies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.FirewallPolicy, ...) error
- func (g *GCEAlphaRegionNetworkFirewallPolicies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.FirewallPolicy, error)
- func (g *GCEAlphaRegionNetworkFirewallPolicies) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicy, ...) error
- func (g *GCEAlphaRegionNetworkFirewallPolicies) PatchRule(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicyRule, ...) error
- func (g *GCEAlphaRegionNetworkFirewallPolicies) RemoveAssociation(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaRegionNetworkFirewallPolicies) RemoveRule(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaRegionNetworkFirewallPolicies) SetIamPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.RegionSetPolicyRequest, ...) (*computealpha.Policy, error)
- func (g *GCEAlphaRegionNetworkFirewallPolicies) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computealpha.TestPermissionsRequest, ...) (*computealpha.TestPermissionsResponse, error)
- type GCEAlphaRegionSslCertificates
- func (g *GCEAlphaRegionSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaRegionSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.SslCertificate, error)
- func (g *GCEAlphaRegionSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computealpha.SslCertificate, ...) error
- func (g *GCEAlphaRegionSslCertificates) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.SslCertificate, error)
- type GCEAlphaRegionTargetHttpProxies
- func (g *GCEAlphaRegionTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaRegionTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetHttpProxy, error)
- func (g *GCEAlphaRegionTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpProxy, ...) error
- func (g *GCEAlphaRegionTargetHttpProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.TargetHttpProxy, error)
- func (g *GCEAlphaRegionTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computealpha.UrlMapReference, ...) error
- type GCEAlphaRegionTargetHttpsProxies
- func (g *GCEAlphaRegionTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaRegionTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetHttpsProxy, error)
- func (g *GCEAlphaRegionTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpsProxy, ...) error
- func (g *GCEAlphaRegionTargetHttpsProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.TargetHttpsProxy, error)
- func (g *GCEAlphaRegionTargetHttpsProxies) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.TargetHttpsProxy, ...) error
- func (g *GCEAlphaRegionTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEAlphaRegionTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computealpha.UrlMapReference, ...) error
- type GCEAlphaRegionUrlMaps
- func (g *GCEAlphaRegionUrlMaps) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaRegionUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.UrlMap, error)
- func (g *GCEAlphaRegionUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computealpha.UrlMap, ...) error
- func (g *GCEAlphaRegionUrlMaps) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.UrlMap, error)
- func (g *GCEAlphaRegionUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.UrlMap, ...) error
- type GCEAlphaRouters
- func (g *GCEAlphaRouters) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computealpha.Router, error)
- func (g *GCEAlphaRouters) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaRouters) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Router, error)
- func (g *GCEAlphaRouters) GetRouterStatus(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.RouterStatusResponse, error)
- func (g *GCEAlphaRouters) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Router, ...) error
- func (g *GCEAlphaRouters) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.Router, error)
- func (g *GCEAlphaRouters) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.Router, ...) error
- func (g *GCEAlphaRouters) Preview(ctx context.Context, key *meta.Key, arg0 *computealpha.Router, ...) (*computealpha.RoutersPreviewResponse, error)
- func (g *GCEAlphaRouters) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computealpha.TestPermissionsRequest, ...) (*computealpha.TestPermissionsResponse, error)
- type GCEAlphaServiceAttachments
- func (g *GCEAlphaServiceAttachments) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaServiceAttachments) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.ServiceAttachment, error)
- func (g *GCEAlphaServiceAttachments) Insert(ctx context.Context, key *meta.Key, obj *computealpha.ServiceAttachment, ...) error
- func (g *GCEAlphaServiceAttachments) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.ServiceAttachment, error)
- func (g *GCEAlphaServiceAttachments) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.ServiceAttachment, ...) error
- type GCEAlphaSslCertificates
- func (g *GCEAlphaSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.SslCertificate, error)
- func (g *GCEAlphaSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computealpha.SslCertificate, ...) error
- func (g *GCEAlphaSslCertificates) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.SslCertificate, error)
- type GCEAlphaSubnetworks
- func (g *GCEAlphaSubnetworks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaSubnetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Subnetwork, error)
- func (g *GCEAlphaSubnetworks) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Subnetwork, ...) error
- func (g *GCEAlphaSubnetworks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.Subnetwork, error)
- func (g *GCEAlphaSubnetworks) ListUsable(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.UsableSubnetwork, error)
- func (g *GCEAlphaSubnetworks) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.Subnetwork, ...) error
- type GCEAlphaTargetHttpProxies
- func (g *GCEAlphaTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetHttpProxy, error)
- func (g *GCEAlphaTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpProxy, ...) error
- func (g *GCEAlphaTargetHttpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.TargetHttpProxy, error)
- func (g *GCEAlphaTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computealpha.UrlMapReference, ...) error
- type GCEAlphaTargetHttpsProxies
- func (g *GCEAlphaTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetHttpsProxy, error)
- func (g *GCEAlphaTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpsProxy, ...) error
- func (g *GCEAlphaTargetHttpsProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.TargetHttpsProxy, error)
- func (g *GCEAlphaTargetHttpsProxies) SetCertificateMap(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEAlphaTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEAlphaTargetHttpsProxies) SetSslPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.SslPolicyReference, ...) error
- func (g *GCEAlphaTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computealpha.UrlMapReference, ...) error
- type GCEAlphaTargetTcpProxies
- func (g *GCEAlphaTargetTcpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaTargetTcpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetTcpProxy, error)
- func (g *GCEAlphaTargetTcpProxies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetTcpProxy, ...) error
- func (g *GCEAlphaTargetTcpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.TargetTcpProxy, error)
- func (g *GCEAlphaTargetTcpProxies) SetBackendService(ctx context.Context, key *meta.Key, ...) error
- type GCEAlphaUrlMaps
- func (g *GCEAlphaUrlMaps) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEAlphaUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.UrlMap, error)
- func (g *GCEAlphaUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computealpha.UrlMap, ...) error
- func (g *GCEAlphaUrlMaps) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.UrlMap, error)
- func (g *GCEAlphaUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.UrlMap, ...) error
- type GCEBackendServices
- func (g *GCEBackendServices) AddSignedUrlKey(ctx context.Context, key *meta.Key, arg0 *computega.SignedUrlKey, ...) error
- func (g *GCEBackendServices) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computega.BackendService, error)
- func (g *GCEBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBackendServices) DeleteSignedUrlKey(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
- func (g *GCEBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.BackendService, error)
- func (g *GCEBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *computega.ResourceGroupReference, ...) (*computega.BackendServiceGroupHealth, error)
- func (g *GCEBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computega.BackendService, ...) error
- func (g *GCEBackendServices) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.BackendService, error)
- func (g *GCEBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computega.BackendService, ...) error
- func (g *GCEBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computega.SecurityPolicyReference, ...) error
- func (g *GCEBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *computega.BackendService, ...) error
- type GCEBetaAddresses
- func (g *GCEBetaAddresses) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computebeta.Address, error)
- func (g *GCEBetaAddresses) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Address, error)
- func (g *GCEBetaAddresses) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Address, ...) error
- func (g *GCEBetaAddresses) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.Address, error)
- type GCEBetaBackendServices
- func (g *GCEBetaBackendServices) AddSignedUrlKey(ctx context.Context, key *meta.Key, arg0 *computebeta.SignedUrlKey, ...) error
- func (g *GCEBetaBackendServices) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computebeta.BackendService, error)
- func (g *GCEBetaBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaBackendServices) DeleteSignedUrlKey(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
- func (g *GCEBetaBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.BackendService, error)
- func (g *GCEBetaBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computebeta.BackendService, ...) error
- func (g *GCEBetaBackendServices) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.BackendService, error)
- func (g *GCEBetaBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.BackendService, ...) error
- func (g *GCEBetaBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computebeta.SecurityPolicyReference, ...) error
- func (g *GCEBetaBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.BackendService, ...) error
- type GCEBetaFirewalls
- func (g *GCEBetaFirewalls) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaFirewalls) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Firewall, error)
- func (g *GCEBetaFirewalls) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Firewall, ...) error
- func (g *GCEBetaFirewalls) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.Firewall, error)
- func (g *GCEBetaFirewalls) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.Firewall, ...) error
- func (g *GCEBetaFirewalls) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.Firewall, ...) error
- type GCEBetaForwardingRules
- func (g *GCEBetaForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.ForwardingRule, error)
- func (g *GCEBetaForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computebeta.ForwardingRule, ...) error
- func (g *GCEBetaForwardingRules) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.ForwardingRule, error)
- func (g *GCEBetaForwardingRules) SetLabels(ctx context.Context, key *meta.Key, arg0 *computebeta.RegionSetLabelsRequest, ...) error
- func (g *GCEBetaForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *computebeta.TargetReference, ...) error
- type GCEBetaGlobalAddresses
- func (g *GCEBetaGlobalAddresses) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaGlobalAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Address, error)
- func (g *GCEBetaGlobalAddresses) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Address, ...) error
- func (g *GCEBetaGlobalAddresses) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.Address, error)
- type GCEBetaGlobalForwardingRules
- func (g *GCEBetaGlobalForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaGlobalForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.ForwardingRule, error)
- func (g *GCEBetaGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computebeta.ForwardingRule, ...) error
- func (g *GCEBetaGlobalForwardingRules) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.ForwardingRule, error)
- func (g *GCEBetaGlobalForwardingRules) SetLabels(ctx context.Context, key *meta.Key, arg0 *computebeta.GlobalSetLabelsRequest, ...) error
- func (g *GCEBetaGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *computebeta.TargetReference, ...) error
- type GCEBetaGlobalNetworkEndpointGroups
- func (g *GCEBetaGlobalNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEBetaGlobalNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaGlobalNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEBetaGlobalNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.NetworkEndpointGroup, error)
- func (g *GCEBetaGlobalNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computebeta.NetworkEndpointGroup, ...) error
- func (g *GCEBetaGlobalNetworkEndpointGroups) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointGroup, error)
- func (g *GCEBetaGlobalNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointWithHealthStatus, error)
- type GCEBetaHealthChecks
- func (g *GCEBetaHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.HealthCheck, error)
- func (g *GCEBetaHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computebeta.HealthCheck, ...) error
- func (g *GCEBetaHealthChecks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.HealthCheck, error)
- func (g *GCEBetaHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.HealthCheck, ...) error
- type GCEBetaImages
- func (g *GCEBetaImages) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaImages) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Image, error)
- func (g *GCEBetaImages) GetFromFamily(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Image, error)
- func (g *GCEBetaImages) GetIamPolicy(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Policy, error)
- func (g *GCEBetaImages) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Image, options ...Option) error
- func (g *GCEBetaImages) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.Image, error)
- func (g *GCEBetaImages) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.Image, options ...Option) error
- func (g *GCEBetaImages) SetIamPolicy(ctx context.Context, key *meta.Key, arg0 *computebeta.GlobalSetPolicyRequest, ...) (*computebeta.Policy, error)
- func (g *GCEBetaImages) SetLabels(ctx context.Context, key *meta.Key, arg0 *computebeta.GlobalSetLabelsRequest, ...) error
- func (g *GCEBetaImages) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computebeta.TestPermissionsRequest, ...) (*computebeta.TestPermissionsResponse, error)
- type GCEBetaInstances
- func (g *GCEBetaInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *computebeta.AttachedDisk, ...) error
- func (g *GCEBetaInstances) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaInstances) DetachDisk(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
- func (g *GCEBetaInstances) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Instance, error)
- func (g *GCEBetaInstances) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Instance, ...) error
- func (g *GCEBetaInstances) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computebeta.Instance, error)
- func (g *GCEBetaInstances) UpdateNetworkInterface(ctx context.Context, key *meta.Key, arg0 string, ...) error
- type GCEBetaNetworkEndpointGroups
- func (g *GCEBetaNetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computebeta.NetworkEndpointGroup, error)
- func (g *GCEBetaNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEBetaNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEBetaNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.NetworkEndpointGroup, error)
- func (g *GCEBetaNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computebeta.NetworkEndpointGroup, ...) error
- func (g *GCEBetaNetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointGroup, error)
- func (g *GCEBetaNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, ...) ([]*computebeta.NetworkEndpointWithHealthStatus, error)
- type GCEBetaNetworks
- func (g *GCEBetaNetworks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaNetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Network, error)
- func (g *GCEBetaNetworks) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Network, ...) error
- func (g *GCEBetaNetworks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.Network, error)
- type GCEBetaRegionBackendServices
- func (g *GCEBetaRegionBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaRegionBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.BackendService, error)
- func (g *GCEBetaRegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *computebeta.ResourceGroupReference, ...) (*computebeta.BackendServiceGroupHealth, error)
- func (g *GCEBetaRegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computebeta.BackendService, ...) error
- func (g *GCEBetaRegionBackendServices) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.BackendService, error)
- func (g *GCEBetaRegionBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.BackendService, ...) error
- func (g *GCEBetaRegionBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computebeta.SecurityPolicyReference, ...) error
- func (g *GCEBetaRegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.BackendService, ...) error
- type GCEBetaRegionHealthChecks
- func (g *GCEBetaRegionHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaRegionHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.HealthCheck, error)
- func (g *GCEBetaRegionHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computebeta.HealthCheck, ...) error
- func (g *GCEBetaRegionHealthChecks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.HealthCheck, error)
- func (g *GCEBetaRegionHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.HealthCheck, ...) error
- type GCEBetaRegionNetworkEndpointGroups
- func (g *GCEBetaRegionNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEBetaRegionNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaRegionNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEBetaRegionNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.NetworkEndpointGroup, error)
- func (g *GCEBetaRegionNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computebeta.NetworkEndpointGroup, ...) error
- func (g *GCEBetaRegionNetworkEndpointGroups) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointGroup, error)
- func (g *GCEBetaRegionNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointWithHealthStatus, error)
- type GCEBetaRegionSslCertificates
- func (g *GCEBetaRegionSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaRegionSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.SslCertificate, error)
- func (g *GCEBetaRegionSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computebeta.SslCertificate, ...) error
- func (g *GCEBetaRegionSslCertificates) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.SslCertificate, error)
- type GCEBetaRegionTargetHttpProxies
- func (g *GCEBetaRegionTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaRegionTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetHttpProxy, error)
- func (g *GCEBetaRegionTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpProxy, ...) error
- func (g *GCEBetaRegionTargetHttpProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.TargetHttpProxy, error)
- func (g *GCEBetaRegionTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computebeta.UrlMapReference, ...) error
- type GCEBetaRegionTargetHttpsProxies
- func (g *GCEBetaRegionTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaRegionTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetHttpsProxy, error)
- func (g *GCEBetaRegionTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpsProxy, ...) error
- func (g *GCEBetaRegionTargetHttpsProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.TargetHttpsProxy, error)
- func (g *GCEBetaRegionTargetHttpsProxies) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.TargetHttpsProxy, ...) error
- func (g *GCEBetaRegionTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEBetaRegionTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computebeta.UrlMapReference, ...) error
- type GCEBetaRegionUrlMaps
- func (g *GCEBetaRegionUrlMaps) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaRegionUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.UrlMap, error)
- func (g *GCEBetaRegionUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computebeta.UrlMap, options ...Option) error
- func (g *GCEBetaRegionUrlMaps) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.UrlMap, error)
- func (g *GCEBetaRegionUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.UrlMap, ...) error
- type GCEBetaRouters
- func (g *GCEBetaRouters) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computebeta.Router, error)
- func (g *GCEBetaRouters) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaRouters) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Router, error)
- func (g *GCEBetaRouters) GetRouterStatus(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.RouterStatusResponse, error)
- func (g *GCEBetaRouters) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Router, options ...Option) error
- func (g *GCEBetaRouters) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.Router, error)
- func (g *GCEBetaRouters) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.Router, ...) error
- func (g *GCEBetaRouters) Preview(ctx context.Context, key *meta.Key, arg0 *computebeta.Router, ...) (*computebeta.RoutersPreviewResponse, error)
- func (g *GCEBetaRouters) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computebeta.TestPermissionsRequest, ...) (*computebeta.TestPermissionsResponse, error)
- type GCEBetaSecurityPolicies
- func (g *GCEBetaSecurityPolicies) AddRule(ctx context.Context, key *meta.Key, arg0 *computebeta.SecurityPolicyRule, ...) error
- func (g *GCEBetaSecurityPolicies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaSecurityPolicies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.SecurityPolicy, error)
- func (g *GCEBetaSecurityPolicies) GetRule(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.SecurityPolicyRule, error)
- func (g *GCEBetaSecurityPolicies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.SecurityPolicy, ...) error
- func (g *GCEBetaSecurityPolicies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.SecurityPolicy, error)
- func (g *GCEBetaSecurityPolicies) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.SecurityPolicy, ...) error
- func (g *GCEBetaSecurityPolicies) PatchRule(ctx context.Context, key *meta.Key, arg0 *computebeta.SecurityPolicyRule, ...) error
- func (g *GCEBetaSecurityPolicies) RemoveRule(ctx context.Context, key *meta.Key, options ...Option) error
- type GCEBetaServiceAttachments
- func (g *GCEBetaServiceAttachments) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaServiceAttachments) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.ServiceAttachment, error)
- func (g *GCEBetaServiceAttachments) Insert(ctx context.Context, key *meta.Key, obj *computebeta.ServiceAttachment, ...) error
- func (g *GCEBetaServiceAttachments) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.ServiceAttachment, error)
- func (g *GCEBetaServiceAttachments) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.ServiceAttachment, ...) error
- type GCEBetaSslCertificates
- func (g *GCEBetaSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.SslCertificate, error)
- func (g *GCEBetaSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computebeta.SslCertificate, ...) error
- func (g *GCEBetaSslCertificates) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.SslCertificate, error)
- type GCEBetaSubnetworks
- func (g *GCEBetaSubnetworks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaSubnetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Subnetwork, error)
- func (g *GCEBetaSubnetworks) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Subnetwork, ...) error
- func (g *GCEBetaSubnetworks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.Subnetwork, error)
- func (g *GCEBetaSubnetworks) ListUsable(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.UsableSubnetwork, error)
- func (g *GCEBetaSubnetworks) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.Subnetwork, ...) error
- type GCEBetaTargetHttpProxies
- func (g *GCEBetaTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetHttpProxy, error)
- func (g *GCEBetaTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpProxy, ...) error
- func (g *GCEBetaTargetHttpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.TargetHttpProxy, error)
- func (g *GCEBetaTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computebeta.UrlMapReference, ...) error
- type GCEBetaTargetHttpsProxies
- func (g *GCEBetaTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetHttpsProxy, error)
- func (g *GCEBetaTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpsProxy, ...) error
- func (g *GCEBetaTargetHttpsProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.TargetHttpsProxy, error)
- func (g *GCEBetaTargetHttpsProxies) SetCertificateMap(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEBetaTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEBetaTargetHttpsProxies) SetSslPolicy(ctx context.Context, key *meta.Key, arg0 *computebeta.SslPolicyReference, ...) error
- func (g *GCEBetaTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computebeta.UrlMapReference, ...) error
- type GCEBetaTargetTcpProxies
- func (g *GCEBetaTargetTcpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaTargetTcpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetTcpProxy, error)
- func (g *GCEBetaTargetTcpProxies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetTcpProxy, ...) error
- func (g *GCEBetaTargetTcpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.TargetTcpProxy, error)
- func (g *GCEBetaTargetTcpProxies) SetBackendService(ctx context.Context, key *meta.Key, ...) error
- type GCEBetaUrlMaps
- func (g *GCEBetaUrlMaps) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEBetaUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.UrlMap, error)
- func (g *GCEBetaUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computebeta.UrlMap, options ...Option) error
- func (g *GCEBetaUrlMaps) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.UrlMap, error)
- func (g *GCEBetaUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.UrlMap, ...) error
- type GCEDisks
- func (g *GCEDisks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEDisks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Disk, error)
- func (g *GCEDisks) Insert(ctx context.Context, key *meta.Key, obj *computega.Disk, options ...Option) error
- func (g *GCEDisks) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.Disk, error)
- func (g *GCEDisks) Resize(ctx context.Context, key *meta.Key, arg0 *computega.DisksResizeRequest, ...) error
- type GCEFirewalls
- func (g *GCEFirewalls) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEFirewalls) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Firewall, error)
- func (g *GCEFirewalls) Insert(ctx context.Context, key *meta.Key, obj *computega.Firewall, options ...Option) error
- func (g *GCEFirewalls) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Firewall, error)
- func (g *GCEFirewalls) Patch(ctx context.Context, key *meta.Key, arg0 *computega.Firewall, ...) error
- func (g *GCEFirewalls) Update(ctx context.Context, key *meta.Key, arg0 *computega.Firewall, ...) error
- type GCEForwardingRules
- func (g *GCEForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.ForwardingRule, error)
- func (g *GCEForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computega.ForwardingRule, ...) error
- func (g *GCEForwardingRules) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.ForwardingRule, error)
- func (g *GCEForwardingRules) SetLabels(ctx context.Context, key *meta.Key, arg0 *computega.RegionSetLabelsRequest, ...) error
- func (g *GCEForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *computega.TargetReference, ...) error
- type GCEGlobalAddresses
- func (g *GCEGlobalAddresses) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEGlobalAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Address, error)
- func (g *GCEGlobalAddresses) Insert(ctx context.Context, key *meta.Key, obj *computega.Address, options ...Option) error
- func (g *GCEGlobalAddresses) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Address, error)
- type GCEGlobalForwardingRules
- func (g *GCEGlobalForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEGlobalForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.ForwardingRule, error)
- func (g *GCEGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computega.ForwardingRule, ...) error
- func (g *GCEGlobalForwardingRules) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.ForwardingRule, error)
- func (g *GCEGlobalForwardingRules) SetLabels(ctx context.Context, key *meta.Key, arg0 *computega.GlobalSetLabelsRequest, ...) error
- func (g *GCEGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *computega.TargetReference, ...) error
- type GCEGlobalNetworkEndpointGroups
- func (g *GCEGlobalNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEGlobalNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEGlobalNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEGlobalNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.NetworkEndpointGroup, error)
- func (g *GCEGlobalNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computega.NetworkEndpointGroup, ...) error
- func (g *GCEGlobalNetworkEndpointGroups) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointGroup, error)
- func (g *GCEGlobalNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointWithHealthStatus, error)
- type GCEHealthChecks
- func (g *GCEHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.HealthCheck, error)
- func (g *GCEHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computega.HealthCheck, ...) error
- func (g *GCEHealthChecks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.HealthCheck, error)
- func (g *GCEHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computega.HealthCheck, ...) error
- type GCEHttpHealthChecks
- func (g *GCEHttpHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEHttpHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.HttpHealthCheck, error)
- func (g *GCEHttpHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computega.HttpHealthCheck, ...) error
- func (g *GCEHttpHealthChecks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.HttpHealthCheck, error)
- func (g *GCEHttpHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computega.HttpHealthCheck, ...) error
- type GCEHttpsHealthChecks
- func (g *GCEHttpsHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEHttpsHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.HttpsHealthCheck, error)
- func (g *GCEHttpsHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computega.HttpsHealthCheck, ...) error
- func (g *GCEHttpsHealthChecks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.HttpsHealthCheck, error)
- func (g *GCEHttpsHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computega.HttpsHealthCheck, ...) error
- type GCEImages
- func (g *GCEImages) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEImages) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Image, error)
- func (g *GCEImages) GetFromFamily(ctx context.Context, key *meta.Key, options ...Option) (*computega.Image, error)
- func (g *GCEImages) GetIamPolicy(ctx context.Context, key *meta.Key, options ...Option) (*computega.Policy, error)
- func (g *GCEImages) Insert(ctx context.Context, key *meta.Key, obj *computega.Image, options ...Option) error
- func (g *GCEImages) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Image, error)
- func (g *GCEImages) Patch(ctx context.Context, key *meta.Key, arg0 *computega.Image, options ...Option) error
- func (g *GCEImages) SetIamPolicy(ctx context.Context, key *meta.Key, arg0 *computega.GlobalSetPolicyRequest, ...) (*computega.Policy, error)
- func (g *GCEImages) SetLabels(ctx context.Context, key *meta.Key, arg0 *computega.GlobalSetLabelsRequest, ...) error
- func (g *GCEImages) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computega.TestPermissionsRequest, ...) (*computega.TestPermissionsResponse, error)
- type GCEInstanceGroupManagers
- func (g *GCEInstanceGroupManagers) CreateInstances(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEInstanceGroupManagers) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEInstanceGroupManagers) DeleteInstances(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEInstanceGroupManagers) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.InstanceGroupManager, error)
- func (g *GCEInstanceGroupManagers) Insert(ctx context.Context, key *meta.Key, obj *computega.InstanceGroupManager, ...) error
- func (g *GCEInstanceGroupManagers) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.InstanceGroupManager, error)
- func (g *GCEInstanceGroupManagers) Resize(ctx context.Context, key *meta.Key, arg0 int64, options ...Option) error
- func (g *GCEInstanceGroupManagers) SetInstanceTemplate(ctx context.Context, key *meta.Key, ...) error
- type GCEInstanceGroups
- func (g *GCEInstanceGroups) AddInstances(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEInstanceGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEInstanceGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.InstanceGroup, error)
- func (g *GCEInstanceGroups) Insert(ctx context.Context, key *meta.Key, obj *computega.InstanceGroup, ...) error
- func (g *GCEInstanceGroups) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.InstanceGroup, error)
- func (g *GCEInstanceGroups) ListInstances(ctx context.Context, key *meta.Key, ...) ([]*computega.InstanceWithNamedPorts, error)
- func (g *GCEInstanceGroups) RemoveInstances(ctx context.Context, key *meta.Key, ...) error
- func (g *GCEInstanceGroups) SetNamedPorts(ctx context.Context, key *meta.Key, ...) error
- type GCEInstanceTemplates
- func (g *GCEInstanceTemplates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEInstanceTemplates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.InstanceTemplate, error)
- func (g *GCEInstanceTemplates) Insert(ctx context.Context, key *meta.Key, obj *computega.InstanceTemplate, ...) error
- func (g *GCEInstanceTemplates) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.InstanceTemplate, error)
- type GCEInstances
- func (g *GCEInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *computega.AttachedDisk, ...) error
- func (g *GCEInstances) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEInstances) DetachDisk(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
- func (g *GCEInstances) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Instance, error)
- func (g *GCEInstances) Insert(ctx context.Context, key *meta.Key, obj *computega.Instance, options ...Option) error
- func (g *GCEInstances) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.Instance, error)
- type GCENetworkEndpointGroups
- func (g *GCENetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computega.NetworkEndpointGroup, error)
- func (g *GCENetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCENetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCENetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCENetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.NetworkEndpointGroup, error)
- func (g *GCENetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computega.NetworkEndpointGroup, ...) error
- func (g *GCENetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointGroup, error)
- func (g *GCENetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, ...) ([]*computega.NetworkEndpointWithHealthStatus, error)
- type GCENetworks
- func (g *GCENetworks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCENetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Network, error)
- func (g *GCENetworks) Insert(ctx context.Context, key *meta.Key, obj *computega.Network, options ...Option) error
- func (g *GCENetworks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Network, error)
- type GCEProjects
- type GCERegionBackendServices
- func (g *GCERegionBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCERegionBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.BackendService, error)
- func (g *GCERegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *computega.ResourceGroupReference, ...) (*computega.BackendServiceGroupHealth, error)
- func (g *GCERegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computega.BackendService, ...) error
- func (g *GCERegionBackendServices) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.BackendService, error)
- func (g *GCERegionBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computega.BackendService, ...) error
- func (g *GCERegionBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computega.SecurityPolicyReference, ...) error
- func (g *GCERegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *computega.BackendService, ...) error
- type GCERegionDisks
- func (g *GCERegionDisks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCERegionDisks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Disk, error)
- func (g *GCERegionDisks) Insert(ctx context.Context, key *meta.Key, obj *computega.Disk, options ...Option) error
- func (g *GCERegionDisks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.Disk, error)
- func (g *GCERegionDisks) Resize(ctx context.Context, key *meta.Key, arg0 *computega.RegionDisksResizeRequest, ...) error
- type GCERegionHealthChecks
- func (g *GCERegionHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCERegionHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.HealthCheck, error)
- func (g *GCERegionHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computega.HealthCheck, ...) error
- func (g *GCERegionHealthChecks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.HealthCheck, error)
- func (g *GCERegionHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computega.HealthCheck, ...) error
- type GCERegionNetworkEndpointGroups
- func (g *GCERegionNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCERegionNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCERegionNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (g *GCERegionNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.NetworkEndpointGroup, error)
- func (g *GCERegionNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computega.NetworkEndpointGroup, ...) error
- func (g *GCERegionNetworkEndpointGroups) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointGroup, error)
- func (g *GCERegionNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointWithHealthStatus, error)
- type GCERegionSslCertificates
- func (g *GCERegionSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCERegionSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.SslCertificate, error)
- func (g *GCERegionSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computega.SslCertificate, ...) error
- func (g *GCERegionSslCertificates) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.SslCertificate, error)
- type GCERegionSslPolicies
- func (g *GCERegionSslPolicies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCERegionSslPolicies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.SslPolicy, error)
- func (g *GCERegionSslPolicies) Insert(ctx context.Context, key *meta.Key, obj *computega.SslPolicy, ...) error
- type GCERegionTargetHttpProxies
- func (g *GCERegionTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCERegionTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetHttpProxy, error)
- func (g *GCERegionTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetHttpProxy, ...) error
- func (g *GCERegionTargetHttpProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.TargetHttpProxy, error)
- func (g *GCERegionTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computega.UrlMapReference, ...) error
- type GCERegionTargetHttpsProxies
- func (g *GCERegionTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCERegionTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetHttpsProxy, error)
- func (g *GCERegionTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetHttpsProxy, ...) error
- func (g *GCERegionTargetHttpsProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.TargetHttpsProxy, error)
- func (g *GCERegionTargetHttpsProxies) Patch(ctx context.Context, key *meta.Key, arg0 *computega.TargetHttpsProxy, ...) error
- func (g *GCERegionTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (g *GCERegionTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computega.UrlMapReference, ...) error
- type GCERegionUrlMaps
- func (g *GCERegionUrlMaps) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCERegionUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.UrlMap, error)
- func (g *GCERegionUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computega.UrlMap, options ...Option) error
- func (g *GCERegionUrlMaps) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.UrlMap, error)
- func (g *GCERegionUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *computega.UrlMap, options ...Option) error
- type GCERegions
- type GCERouters
- func (g *GCERouters) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computega.Router, error)
- func (g *GCERouters) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCERouters) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Router, error)
- func (g *GCERouters) GetRouterStatus(ctx context.Context, key *meta.Key, options ...Option) (*computega.RouterStatusResponse, error)
- func (g *GCERouters) Insert(ctx context.Context, key *meta.Key, obj *computega.Router, options ...Option) error
- func (g *GCERouters) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.Router, error)
- func (g *GCERouters) Patch(ctx context.Context, key *meta.Key, arg0 *computega.Router, options ...Option) error
- func (g *GCERouters) Preview(ctx context.Context, key *meta.Key, arg0 *computega.Router, options ...Option) (*computega.RoutersPreviewResponse, error)
- type GCERoutes
- func (g *GCERoutes) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCERoutes) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Route, error)
- func (g *GCERoutes) Insert(ctx context.Context, key *meta.Key, obj *computega.Route, options ...Option) error
- func (g *GCERoutes) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Route, error)
- type GCEServiceAttachments
- func (g *GCEServiceAttachments) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEServiceAttachments) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.ServiceAttachment, error)
- func (g *GCEServiceAttachments) Insert(ctx context.Context, key *meta.Key, obj *computega.ServiceAttachment, ...) error
- func (g *GCEServiceAttachments) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.ServiceAttachment, error)
- func (g *GCEServiceAttachments) Patch(ctx context.Context, key *meta.Key, arg0 *computega.ServiceAttachment, ...) error
- type GCESslCertificates
- func (g *GCESslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCESslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.SslCertificate, error)
- func (g *GCESslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computega.SslCertificate, ...) error
- func (g *GCESslCertificates) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.SslCertificate, error)
- type GCESslPolicies
- func (g *GCESslPolicies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCESslPolicies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.SslPolicy, error)
- func (g *GCESslPolicies) Insert(ctx context.Context, key *meta.Key, obj *computega.SslPolicy, ...) error
- type GCESubnetworks
- func (g *GCESubnetworks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCESubnetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Subnetwork, error)
- func (g *GCESubnetworks) Insert(ctx context.Context, key *meta.Key, obj *computega.Subnetwork, ...) error
- func (g *GCESubnetworks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.Subnetwork, error)
- func (g *GCESubnetworks) ListUsable(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.UsableSubnetwork, error)
- func (g *GCESubnetworks) Patch(ctx context.Context, key *meta.Key, arg0 *computega.Subnetwork, ...) error
- type GCETargetHttpProxies
- func (g *GCETargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCETargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetHttpProxy, error)
- func (g *GCETargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetHttpProxy, ...) error
- func (g *GCETargetHttpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.TargetHttpProxy, error)
- func (g *GCETargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computega.UrlMapReference, ...) error
- type GCETargetHttpsProxies
- func (g *GCETargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCETargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetHttpsProxy, error)
- func (g *GCETargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetHttpsProxy, ...) error
- func (g *GCETargetHttpsProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.TargetHttpsProxy, error)
- func (g *GCETargetHttpsProxies) SetCertificateMap(ctx context.Context, key *meta.Key, ...) error
- func (g *GCETargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (g *GCETargetHttpsProxies) SetSslPolicy(ctx context.Context, key *meta.Key, arg0 *computega.SslPolicyReference, ...) error
- func (g *GCETargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computega.UrlMapReference, ...) error
- type GCETargetPools
- func (g *GCETargetPools) AddInstance(ctx context.Context, key *meta.Key, ...) error
- func (g *GCETargetPools) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCETargetPools) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetPool, error)
- func (g *GCETargetPools) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetPool, ...) error
- func (g *GCETargetPools) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.TargetPool, error)
- func (g *GCETargetPools) RemoveInstance(ctx context.Context, key *meta.Key, ...) error
- type GCETargetTcpProxies
- func (g *GCETargetTcpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCETargetTcpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetTcpProxy, error)
- func (g *GCETargetTcpProxies) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetTcpProxy, ...) error
- func (g *GCETargetTcpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.TargetTcpProxy, error)
- func (g *GCETargetTcpProxies) SetBackendService(ctx context.Context, key *meta.Key, ...) error
- type GCEUrlMaps
- func (g *GCEUrlMaps) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *GCEUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.UrlMap, error)
- func (g *GCEUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computega.UrlMap, options ...Option) error
- func (g *GCEUrlMaps) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.UrlMap, error)
- func (g *GCEUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *computega.UrlMap, options ...Option) error
- type GCEZones
- type GlobalAddresses
- type GlobalForwardingRules
- type GlobalNetworkEndpointGroups
- type HealthChecks
- type HttpHealthChecks
- type HttpsHealthChecks
- type Images
- type InstanceGroupManagers
- type InstanceGroups
- type InstanceTemplates
- type Instances
- type LbScheme
- type Meshes
- type MinimumRateLimiter
- type MockAddresses
- func (m *MockAddresses) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computega.Address, error)
- func (m *MockAddresses) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Address, error)
- func (m *MockAddresses) Insert(ctx context.Context, key *meta.Key, obj *computega.Address, options ...Option) error
- func (m *MockAddresses) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.Address, error)
- func (m *MockAddresses) Obj(o *computega.Address) *MockAddressesObj
- type MockAddressesObj
- type MockAlphaAddresses
- func (m *MockAlphaAddresses) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computealpha.Address, error)
- func (m *MockAlphaAddresses) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Address, error)
- func (m *MockAlphaAddresses) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Address, ...) error
- func (m *MockAlphaAddresses) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.Address, error)
- func (m *MockAlphaAddresses) Obj(o *computealpha.Address) *MockAddressesObj
- type MockAlphaBackendServices
- func (m *MockAlphaBackendServices) AddSignedUrlKey(ctx context.Context, key *meta.Key, arg0 *computealpha.SignedUrlKey, ...) error
- func (m *MockAlphaBackendServices) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computealpha.BackendService, error)
- func (m *MockAlphaBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaBackendServices) DeleteSignedUrlKey(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
- func (m *MockAlphaBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.BackendService, error)
- func (m *MockAlphaBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computealpha.BackendService, ...) error
- func (m *MockAlphaBackendServices) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.BackendService, error)
- func (m *MockAlphaBackendServices) Obj(o *computealpha.BackendService) *MockBackendServicesObj
- func (m *MockAlphaBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.BackendService, ...) error
- func (m *MockAlphaBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.SecurityPolicyReference, ...) error
- func (m *MockAlphaBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.BackendService, ...) error
- type MockAlphaFirewalls
- func (m *MockAlphaFirewalls) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaFirewalls) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Firewall, error)
- func (m *MockAlphaFirewalls) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Firewall, ...) error
- func (m *MockAlphaFirewalls) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.Firewall, error)
- func (m *MockAlphaFirewalls) Obj(o *computealpha.Firewall) *MockFirewallsObj
- func (m *MockAlphaFirewalls) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.Firewall, ...) error
- func (m *MockAlphaFirewalls) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.Firewall, ...) error
- type MockAlphaForwardingRules
- func (m *MockAlphaForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.ForwardingRule, error)
- func (m *MockAlphaForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computealpha.ForwardingRule, ...) error
- func (m *MockAlphaForwardingRules) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.ForwardingRule, error)
- func (m *MockAlphaForwardingRules) Obj(o *computealpha.ForwardingRule) *MockForwardingRulesObj
- func (m *MockAlphaForwardingRules) SetLabels(ctx context.Context, key *meta.Key, arg0 *computealpha.RegionSetLabelsRequest, ...) error
- func (m *MockAlphaForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *computealpha.TargetReference, ...) error
- type MockAlphaGlobalAddresses
- func (m *MockAlphaGlobalAddresses) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaGlobalAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Address, error)
- func (m *MockAlphaGlobalAddresses) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Address, ...) error
- func (m *MockAlphaGlobalAddresses) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.Address, error)
- func (m *MockAlphaGlobalAddresses) Obj(o *computealpha.Address) *MockGlobalAddressesObj
- type MockAlphaGlobalForwardingRules
- func (m *MockAlphaGlobalForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaGlobalForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.ForwardingRule, error)
- func (m *MockAlphaGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computealpha.ForwardingRule, ...) error
- func (m *MockAlphaGlobalForwardingRules) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.ForwardingRule, error)
- func (m *MockAlphaGlobalForwardingRules) Obj(o *computealpha.ForwardingRule) *MockGlobalForwardingRulesObj
- func (m *MockAlphaGlobalForwardingRules) SetLabels(ctx context.Context, key *meta.Key, arg0 *computealpha.GlobalSetLabelsRequest, ...) error
- func (m *MockAlphaGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *computealpha.TargetReference, ...) error
- type MockAlphaGlobalNetworkEndpointGroups
- func (m *MockAlphaGlobalNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockAlphaGlobalNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaGlobalNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockAlphaGlobalNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.NetworkEndpointGroup, error)
- func (m *MockAlphaGlobalNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computealpha.NetworkEndpointGroup, ...) error
- func (m *MockAlphaGlobalNetworkEndpointGroups) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointGroup, error)
- func (m *MockAlphaGlobalNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointWithHealthStatus, error)
- func (m *MockAlphaGlobalNetworkEndpointGroups) Obj(o *computealpha.NetworkEndpointGroup) *MockGlobalNetworkEndpointGroupsObj
- type MockAlphaHealthChecks
- func (m *MockAlphaHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.HealthCheck, error)
- func (m *MockAlphaHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computealpha.HealthCheck, ...) error
- func (m *MockAlphaHealthChecks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.HealthCheck, error)
- func (m *MockAlphaHealthChecks) Obj(o *computealpha.HealthCheck) *MockHealthChecksObj
- func (m *MockAlphaHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.HealthCheck, ...) error
- type MockAlphaImages
- func (m *MockAlphaImages) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaImages) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Image, error)
- func (m *MockAlphaImages) GetFromFamily(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Image, error)
- func (m *MockAlphaImages) GetIamPolicy(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Policy, error)
- func (m *MockAlphaImages) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Image, options ...Option) error
- func (m *MockAlphaImages) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.Image, error)
- func (m *MockAlphaImages) Obj(o *computealpha.Image) *MockImagesObj
- func (m *MockAlphaImages) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.Image, ...) error
- func (m *MockAlphaImages) SetIamPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.GlobalSetPolicyRequest, ...) (*computealpha.Policy, error)
- func (m *MockAlphaImages) SetLabels(ctx context.Context, key *meta.Key, arg0 *computealpha.GlobalSetLabelsRequest, ...) error
- func (m *MockAlphaImages) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computealpha.TestPermissionsRequest, ...) (*computealpha.TestPermissionsResponse, error)
- type MockAlphaInstances
- func (m *MockAlphaInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *computealpha.AttachedDisk, ...) error
- func (m *MockAlphaInstances) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaInstances) DetachDisk(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
- func (m *MockAlphaInstances) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Instance, error)
- func (m *MockAlphaInstances) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Instance, ...) error
- func (m *MockAlphaInstances) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computealpha.Instance, error)
- func (m *MockAlphaInstances) Obj(o *computealpha.Instance) *MockInstancesObj
- func (m *MockAlphaInstances) UpdateNetworkInterface(ctx context.Context, key *meta.Key, arg0 string, ...) error
- type MockAlphaNetworkEndpointGroups
- func (m *MockAlphaNetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computealpha.NetworkEndpointGroup, error)
- func (m *MockAlphaNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockAlphaNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockAlphaNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.NetworkEndpointGroup, error)
- func (m *MockAlphaNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computealpha.NetworkEndpointGroup, ...) error
- func (m *MockAlphaNetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointGroup, error)
- func (m *MockAlphaNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, ...) ([]*computealpha.NetworkEndpointWithHealthStatus, error)
- func (m *MockAlphaNetworkEndpointGroups) Obj(o *computealpha.NetworkEndpointGroup) *MockNetworkEndpointGroupsObj
- type MockAlphaNetworkFirewallPolicies
- func (m *MockAlphaNetworkFirewallPolicies) AddAssociation(ctx context.Context, key *meta.Key, ...) error
- func (m *MockAlphaNetworkFirewallPolicies) AddRule(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicyRule, ...) error
- func (m *MockAlphaNetworkFirewallPolicies) CloneRules(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaNetworkFirewallPolicies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaNetworkFirewallPolicies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicy, error)
- func (m *MockAlphaNetworkFirewallPolicies) GetAssociation(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicyAssociation, error)
- func (m *MockAlphaNetworkFirewallPolicies) GetIamPolicy(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Policy, error)
- func (m *MockAlphaNetworkFirewallPolicies) GetRule(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicyRule, error)
- func (m *MockAlphaNetworkFirewallPolicies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.FirewallPolicy, ...) error
- func (m *MockAlphaNetworkFirewallPolicies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.FirewallPolicy, error)
- func (m *MockAlphaNetworkFirewallPolicies) Obj(o *computealpha.FirewallPolicy) *MockNetworkFirewallPoliciesObj
- func (m *MockAlphaNetworkFirewallPolicies) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicy, ...) error
- func (m *MockAlphaNetworkFirewallPolicies) PatchRule(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicyRule, ...) error
- func (m *MockAlphaNetworkFirewallPolicies) RemoveAssociation(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaNetworkFirewallPolicies) RemoveRule(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaNetworkFirewallPolicies) SetIamPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.GlobalSetPolicyRequest, ...) (*computealpha.Policy, error)
- func (m *MockAlphaNetworkFirewallPolicies) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computealpha.TestPermissionsRequest, ...) (*computealpha.TestPermissionsResponse, error)
- type MockAlphaNetworks
- func (m *MockAlphaNetworks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaNetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Network, error)
- func (m *MockAlphaNetworks) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Network, ...) error
- func (m *MockAlphaNetworks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.Network, error)
- func (m *MockAlphaNetworks) Obj(o *computealpha.Network) *MockNetworksObj
- type MockAlphaRegionBackendServices
- func (m *MockAlphaRegionBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaRegionBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.BackendService, error)
- func (m *MockAlphaRegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *computealpha.ResourceGroupReference, ...) (*computealpha.BackendServiceGroupHealth, error)
- func (m *MockAlphaRegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computealpha.BackendService, ...) error
- func (m *MockAlphaRegionBackendServices) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.BackendService, error)
- func (m *MockAlphaRegionBackendServices) Obj(o *computealpha.BackendService) *MockRegionBackendServicesObj
- func (m *MockAlphaRegionBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.BackendService, ...) error
- func (m *MockAlphaRegionBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.SecurityPolicyReference, ...) error
- func (m *MockAlphaRegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.BackendService, ...) error
- type MockAlphaRegionHealthChecks
- func (m *MockAlphaRegionHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaRegionHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.HealthCheck, error)
- func (m *MockAlphaRegionHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computealpha.HealthCheck, ...) error
- func (m *MockAlphaRegionHealthChecks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.HealthCheck, error)
- func (m *MockAlphaRegionHealthChecks) Obj(o *computealpha.HealthCheck) *MockRegionHealthChecksObj
- func (m *MockAlphaRegionHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.HealthCheck, ...) error
- type MockAlphaRegionNetworkEndpointGroups
- func (m *MockAlphaRegionNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockAlphaRegionNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaRegionNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockAlphaRegionNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.NetworkEndpointGroup, error)
- func (m *MockAlphaRegionNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computealpha.NetworkEndpointGroup, ...) error
- func (m *MockAlphaRegionNetworkEndpointGroups) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointGroup, error)
- func (m *MockAlphaRegionNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointWithHealthStatus, error)
- func (m *MockAlphaRegionNetworkEndpointGroups) Obj(o *computealpha.NetworkEndpointGroup) *MockRegionNetworkEndpointGroupsObj
- type MockAlphaRegionNetworkFirewallPolicies
- func (m *MockAlphaRegionNetworkFirewallPolicies) AddAssociation(ctx context.Context, key *meta.Key, ...) error
- func (m *MockAlphaRegionNetworkFirewallPolicies) AddRule(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicyRule, ...) error
- func (m *MockAlphaRegionNetworkFirewallPolicies) CloneRules(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaRegionNetworkFirewallPolicies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaRegionNetworkFirewallPolicies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicy, error)
- func (m *MockAlphaRegionNetworkFirewallPolicies) GetAssociation(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicyAssociation, error)
- func (m *MockAlphaRegionNetworkFirewallPolicies) GetIamPolicy(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Policy, error)
- func (m *MockAlphaRegionNetworkFirewallPolicies) GetRule(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicyRule, error)
- func (m *MockAlphaRegionNetworkFirewallPolicies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.FirewallPolicy, ...) error
- func (m *MockAlphaRegionNetworkFirewallPolicies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.FirewallPolicy, error)
- func (m *MockAlphaRegionNetworkFirewallPolicies) Obj(o *computealpha.FirewallPolicy) *MockRegionNetworkFirewallPoliciesObj
- func (m *MockAlphaRegionNetworkFirewallPolicies) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicy, ...) error
- func (m *MockAlphaRegionNetworkFirewallPolicies) PatchRule(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicyRule, ...) error
- func (m *MockAlphaRegionNetworkFirewallPolicies) RemoveAssociation(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaRegionNetworkFirewallPolicies) RemoveRule(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaRegionNetworkFirewallPolicies) SetIamPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.RegionSetPolicyRequest, ...) (*computealpha.Policy, error)
- func (m *MockAlphaRegionNetworkFirewallPolicies) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computealpha.TestPermissionsRequest, ...) (*computealpha.TestPermissionsResponse, error)
- type MockAlphaRegionSslCertificates
- func (m *MockAlphaRegionSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaRegionSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.SslCertificate, error)
- func (m *MockAlphaRegionSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computealpha.SslCertificate, ...) error
- func (m *MockAlphaRegionSslCertificates) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.SslCertificate, error)
- func (m *MockAlphaRegionSslCertificates) Obj(o *computealpha.SslCertificate) *MockRegionSslCertificatesObj
- type MockAlphaRegionTargetHttpProxies
- func (m *MockAlphaRegionTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaRegionTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetHttpProxy, error)
- func (m *MockAlphaRegionTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpProxy, ...) error
- func (m *MockAlphaRegionTargetHttpProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.TargetHttpProxy, error)
- func (m *MockAlphaRegionTargetHttpProxies) Obj(o *computealpha.TargetHttpProxy) *MockRegionTargetHttpProxiesObj
- func (m *MockAlphaRegionTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computealpha.UrlMapReference, ...) error
- type MockAlphaRegionTargetHttpsProxies
- func (m *MockAlphaRegionTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaRegionTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetHttpsProxy, error)
- func (m *MockAlphaRegionTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpsProxy, ...) error
- func (m *MockAlphaRegionTargetHttpsProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.TargetHttpsProxy, error)
- func (m *MockAlphaRegionTargetHttpsProxies) Obj(o *computealpha.TargetHttpsProxy) *MockRegionTargetHttpsProxiesObj
- func (m *MockAlphaRegionTargetHttpsProxies) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.TargetHttpsProxy, ...) error
- func (m *MockAlphaRegionTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (m *MockAlphaRegionTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computealpha.UrlMapReference, ...) error
- type MockAlphaRegionUrlMaps
- func (m *MockAlphaRegionUrlMaps) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaRegionUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.UrlMap, error)
- func (m *MockAlphaRegionUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computealpha.UrlMap, ...) error
- func (m *MockAlphaRegionUrlMaps) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.UrlMap, error)
- func (m *MockAlphaRegionUrlMaps) Obj(o *computealpha.UrlMap) *MockRegionUrlMapsObj
- func (m *MockAlphaRegionUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.UrlMap, ...) error
- type MockAlphaRouters
- func (m *MockAlphaRouters) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computealpha.Router, error)
- func (m *MockAlphaRouters) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaRouters) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Router, error)
- func (m *MockAlphaRouters) GetRouterStatus(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.RouterStatusResponse, error)
- func (m *MockAlphaRouters) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Router, ...) error
- func (m *MockAlphaRouters) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.Router, error)
- func (m *MockAlphaRouters) Obj(o *computealpha.Router) *MockRoutersObj
- func (m *MockAlphaRouters) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.Router, ...) error
- func (m *MockAlphaRouters) Preview(ctx context.Context, key *meta.Key, arg0 *computealpha.Router, ...) (*computealpha.RoutersPreviewResponse, error)
- func (m *MockAlphaRouters) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computealpha.TestPermissionsRequest, ...) (*computealpha.TestPermissionsResponse, error)
- type MockAlphaServiceAttachments
- func (m *MockAlphaServiceAttachments) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaServiceAttachments) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.ServiceAttachment, error)
- func (m *MockAlphaServiceAttachments) Insert(ctx context.Context, key *meta.Key, obj *computealpha.ServiceAttachment, ...) error
- func (m *MockAlphaServiceAttachments) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.ServiceAttachment, error)
- func (m *MockAlphaServiceAttachments) Obj(o *computealpha.ServiceAttachment) *MockServiceAttachmentsObj
- func (m *MockAlphaServiceAttachments) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.ServiceAttachment, ...) error
- type MockAlphaSslCertificates
- func (m *MockAlphaSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.SslCertificate, error)
- func (m *MockAlphaSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computealpha.SslCertificate, ...) error
- func (m *MockAlphaSslCertificates) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.SslCertificate, error)
- func (m *MockAlphaSslCertificates) Obj(o *computealpha.SslCertificate) *MockSslCertificatesObj
- type MockAlphaSubnetworks
- func (m *MockAlphaSubnetworks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaSubnetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Subnetwork, error)
- func (m *MockAlphaSubnetworks) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Subnetwork, ...) error
- func (m *MockAlphaSubnetworks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.Subnetwork, error)
- func (m *MockAlphaSubnetworks) ListUsable(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.UsableSubnetwork, error)
- func (m *MockAlphaSubnetworks) Obj(o *computealpha.Subnetwork) *MockSubnetworksObj
- func (m *MockAlphaSubnetworks) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.Subnetwork, ...) error
- type MockAlphaTargetHttpProxies
- func (m *MockAlphaTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetHttpProxy, error)
- func (m *MockAlphaTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpProxy, ...) error
- func (m *MockAlphaTargetHttpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.TargetHttpProxy, error)
- func (m *MockAlphaTargetHttpProxies) Obj(o *computealpha.TargetHttpProxy) *MockTargetHttpProxiesObj
- func (m *MockAlphaTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computealpha.UrlMapReference, ...) error
- type MockAlphaTargetHttpsProxies
- func (m *MockAlphaTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetHttpsProxy, error)
- func (m *MockAlphaTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpsProxy, ...) error
- func (m *MockAlphaTargetHttpsProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.TargetHttpsProxy, error)
- func (m *MockAlphaTargetHttpsProxies) Obj(o *computealpha.TargetHttpsProxy) *MockTargetHttpsProxiesObj
- func (m *MockAlphaTargetHttpsProxies) SetCertificateMap(ctx context.Context, key *meta.Key, ...) error
- func (m *MockAlphaTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (m *MockAlphaTargetHttpsProxies) SetSslPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.SslPolicyReference, ...) error
- func (m *MockAlphaTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computealpha.UrlMapReference, ...) error
- type MockAlphaTargetTcpProxies
- func (m *MockAlphaTargetTcpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaTargetTcpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetTcpProxy, error)
- func (m *MockAlphaTargetTcpProxies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetTcpProxy, ...) error
- func (m *MockAlphaTargetTcpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.TargetTcpProxy, error)
- func (m *MockAlphaTargetTcpProxies) Obj(o *computealpha.TargetTcpProxy) *MockTargetTcpProxiesObj
- func (m *MockAlphaTargetTcpProxies) SetBackendService(ctx context.Context, key *meta.Key, ...) error
- type MockAlphaUrlMaps
- func (m *MockAlphaUrlMaps) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockAlphaUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.UrlMap, error)
- func (m *MockAlphaUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computealpha.UrlMap, ...) error
- func (m *MockAlphaUrlMaps) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.UrlMap, error)
- func (m *MockAlphaUrlMaps) Obj(o *computealpha.UrlMap) *MockUrlMapsObj
- func (m *MockAlphaUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.UrlMap, ...) error
- type MockBackendServices
- func (m *MockBackendServices) AddSignedUrlKey(ctx context.Context, key *meta.Key, arg0 *computega.SignedUrlKey, ...) error
- func (m *MockBackendServices) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computega.BackendService, error)
- func (m *MockBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBackendServices) DeleteSignedUrlKey(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
- func (m *MockBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.BackendService, error)
- func (m *MockBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *computega.ResourceGroupReference, ...) (*computega.BackendServiceGroupHealth, error)
- func (m *MockBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computega.BackendService, ...) error
- func (m *MockBackendServices) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.BackendService, error)
- func (m *MockBackendServices) Obj(o *computega.BackendService) *MockBackendServicesObj
- func (m *MockBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computega.BackendService, ...) error
- func (m *MockBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computega.SecurityPolicyReference, ...) error
- func (m *MockBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *computega.BackendService, ...) error
- type MockBackendServicesObj
- type MockBetaAddresses
- func (m *MockBetaAddresses) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computebeta.Address, error)
- func (m *MockBetaAddresses) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Address, error)
- func (m *MockBetaAddresses) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Address, ...) error
- func (m *MockBetaAddresses) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.Address, error)
- func (m *MockBetaAddresses) Obj(o *computebeta.Address) *MockAddressesObj
- type MockBetaBackendServices
- func (m *MockBetaBackendServices) AddSignedUrlKey(ctx context.Context, key *meta.Key, arg0 *computebeta.SignedUrlKey, ...) error
- func (m *MockBetaBackendServices) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computebeta.BackendService, error)
- func (m *MockBetaBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaBackendServices) DeleteSignedUrlKey(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
- func (m *MockBetaBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.BackendService, error)
- func (m *MockBetaBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computebeta.BackendService, ...) error
- func (m *MockBetaBackendServices) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.BackendService, error)
- func (m *MockBetaBackendServices) Obj(o *computebeta.BackendService) *MockBackendServicesObj
- func (m *MockBetaBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.BackendService, ...) error
- func (m *MockBetaBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computebeta.SecurityPolicyReference, ...) error
- func (m *MockBetaBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.BackendService, ...) error
- type MockBetaFirewalls
- func (m *MockBetaFirewalls) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaFirewalls) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Firewall, error)
- func (m *MockBetaFirewalls) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Firewall, ...) error
- func (m *MockBetaFirewalls) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.Firewall, error)
- func (m *MockBetaFirewalls) Obj(o *computebeta.Firewall) *MockFirewallsObj
- func (m *MockBetaFirewalls) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.Firewall, ...) error
- func (m *MockBetaFirewalls) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.Firewall, ...) error
- type MockBetaForwardingRules
- func (m *MockBetaForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.ForwardingRule, error)
- func (m *MockBetaForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computebeta.ForwardingRule, ...) error
- func (m *MockBetaForwardingRules) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.ForwardingRule, error)
- func (m *MockBetaForwardingRules) Obj(o *computebeta.ForwardingRule) *MockForwardingRulesObj
- func (m *MockBetaForwardingRules) SetLabels(ctx context.Context, key *meta.Key, arg0 *computebeta.RegionSetLabelsRequest, ...) error
- func (m *MockBetaForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *computebeta.TargetReference, ...) error
- type MockBetaGlobalAddresses
- func (m *MockBetaGlobalAddresses) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaGlobalAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Address, error)
- func (m *MockBetaGlobalAddresses) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Address, ...) error
- func (m *MockBetaGlobalAddresses) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.Address, error)
- func (m *MockBetaGlobalAddresses) Obj(o *computebeta.Address) *MockGlobalAddressesObj
- type MockBetaGlobalForwardingRules
- func (m *MockBetaGlobalForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaGlobalForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.ForwardingRule, error)
- func (m *MockBetaGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computebeta.ForwardingRule, ...) error
- func (m *MockBetaGlobalForwardingRules) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.ForwardingRule, error)
- func (m *MockBetaGlobalForwardingRules) Obj(o *computebeta.ForwardingRule) *MockGlobalForwardingRulesObj
- func (m *MockBetaGlobalForwardingRules) SetLabels(ctx context.Context, key *meta.Key, arg0 *computebeta.GlobalSetLabelsRequest, ...) error
- func (m *MockBetaGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *computebeta.TargetReference, ...) error
- type MockBetaGlobalNetworkEndpointGroups
- func (m *MockBetaGlobalNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockBetaGlobalNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaGlobalNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockBetaGlobalNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.NetworkEndpointGroup, error)
- func (m *MockBetaGlobalNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computebeta.NetworkEndpointGroup, ...) error
- func (m *MockBetaGlobalNetworkEndpointGroups) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointGroup, error)
- func (m *MockBetaGlobalNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointWithHealthStatus, error)
- func (m *MockBetaGlobalNetworkEndpointGroups) Obj(o *computebeta.NetworkEndpointGroup) *MockGlobalNetworkEndpointGroupsObj
- type MockBetaHealthChecks
- func (m *MockBetaHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.HealthCheck, error)
- func (m *MockBetaHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computebeta.HealthCheck, ...) error
- func (m *MockBetaHealthChecks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.HealthCheck, error)
- func (m *MockBetaHealthChecks) Obj(o *computebeta.HealthCheck) *MockHealthChecksObj
- func (m *MockBetaHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.HealthCheck, ...) error
- type MockBetaImages
- func (m *MockBetaImages) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaImages) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Image, error)
- func (m *MockBetaImages) GetFromFamily(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Image, error)
- func (m *MockBetaImages) GetIamPolicy(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Policy, error)
- func (m *MockBetaImages) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Image, options ...Option) error
- func (m *MockBetaImages) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.Image, error)
- func (m *MockBetaImages) Obj(o *computebeta.Image) *MockImagesObj
- func (m *MockBetaImages) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.Image, options ...Option) error
- func (m *MockBetaImages) SetIamPolicy(ctx context.Context, key *meta.Key, arg0 *computebeta.GlobalSetPolicyRequest, ...) (*computebeta.Policy, error)
- func (m *MockBetaImages) SetLabels(ctx context.Context, key *meta.Key, arg0 *computebeta.GlobalSetLabelsRequest, ...) error
- func (m *MockBetaImages) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computebeta.TestPermissionsRequest, ...) (*computebeta.TestPermissionsResponse, error)
- type MockBetaInstances
- func (m *MockBetaInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *computebeta.AttachedDisk, ...) error
- func (m *MockBetaInstances) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaInstances) DetachDisk(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
- func (m *MockBetaInstances) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Instance, error)
- func (m *MockBetaInstances) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Instance, ...) error
- func (m *MockBetaInstances) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computebeta.Instance, error)
- func (m *MockBetaInstances) Obj(o *computebeta.Instance) *MockInstancesObj
- func (m *MockBetaInstances) UpdateNetworkInterface(ctx context.Context, key *meta.Key, arg0 string, ...) error
- type MockBetaMeshes
- func (m *MockBetaMeshes) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaMeshes) Get(ctx context.Context, key *meta.Key, options ...Option) (*networkservicesbeta.Mesh, error)
- func (m *MockBetaMeshes) Insert(ctx context.Context, key *meta.Key, obj *networkservicesbeta.Mesh, ...) error
- func (m *MockBetaMeshes) List(ctx context.Context, fl *filter.F, options ...Option) ([]*networkservicesbeta.Mesh, error)
- func (m *MockBetaMeshes) Obj(o *networkservicesbeta.Mesh) *MockMeshesObj
- func (m *MockBetaMeshes) Patch(ctx context.Context, key *meta.Key, arg0 *networkservicesbeta.Mesh, ...) error
- type MockBetaNetworkEndpointGroups
- func (m *MockBetaNetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computebeta.NetworkEndpointGroup, error)
- func (m *MockBetaNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockBetaNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockBetaNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.NetworkEndpointGroup, error)
- func (m *MockBetaNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computebeta.NetworkEndpointGroup, ...) error
- func (m *MockBetaNetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointGroup, error)
- func (m *MockBetaNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, ...) ([]*computebeta.NetworkEndpointWithHealthStatus, error)
- func (m *MockBetaNetworkEndpointGroups) Obj(o *computebeta.NetworkEndpointGroup) *MockNetworkEndpointGroupsObj
- type MockBetaNetworks
- func (m *MockBetaNetworks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaNetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Network, error)
- func (m *MockBetaNetworks) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Network, ...) error
- func (m *MockBetaNetworks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.Network, error)
- func (m *MockBetaNetworks) Obj(o *computebeta.Network) *MockNetworksObj
- type MockBetaRegionBackendServices
- func (m *MockBetaRegionBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaRegionBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.BackendService, error)
- func (m *MockBetaRegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *computebeta.ResourceGroupReference, ...) (*computebeta.BackendServiceGroupHealth, error)
- func (m *MockBetaRegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computebeta.BackendService, ...) error
- func (m *MockBetaRegionBackendServices) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.BackendService, error)
- func (m *MockBetaRegionBackendServices) Obj(o *computebeta.BackendService) *MockRegionBackendServicesObj
- func (m *MockBetaRegionBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.BackendService, ...) error
- func (m *MockBetaRegionBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computebeta.SecurityPolicyReference, ...) error
- func (m *MockBetaRegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.BackendService, ...) error
- type MockBetaRegionHealthChecks
- func (m *MockBetaRegionHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaRegionHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.HealthCheck, error)
- func (m *MockBetaRegionHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computebeta.HealthCheck, ...) error
- func (m *MockBetaRegionHealthChecks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.HealthCheck, error)
- func (m *MockBetaRegionHealthChecks) Obj(o *computebeta.HealthCheck) *MockRegionHealthChecksObj
- func (m *MockBetaRegionHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.HealthCheck, ...) error
- type MockBetaRegionNetworkEndpointGroups
- func (m *MockBetaRegionNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockBetaRegionNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaRegionNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockBetaRegionNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.NetworkEndpointGroup, error)
- func (m *MockBetaRegionNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computebeta.NetworkEndpointGroup, ...) error
- func (m *MockBetaRegionNetworkEndpointGroups) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointGroup, error)
- func (m *MockBetaRegionNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointWithHealthStatus, error)
- func (m *MockBetaRegionNetworkEndpointGroups) Obj(o *computebeta.NetworkEndpointGroup) *MockRegionNetworkEndpointGroupsObj
- type MockBetaRegionSslCertificates
- func (m *MockBetaRegionSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaRegionSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.SslCertificate, error)
- func (m *MockBetaRegionSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computebeta.SslCertificate, ...) error
- func (m *MockBetaRegionSslCertificates) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.SslCertificate, error)
- func (m *MockBetaRegionSslCertificates) Obj(o *computebeta.SslCertificate) *MockRegionSslCertificatesObj
- type MockBetaRegionTargetHttpProxies
- func (m *MockBetaRegionTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaRegionTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetHttpProxy, error)
- func (m *MockBetaRegionTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpProxy, ...) error
- func (m *MockBetaRegionTargetHttpProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.TargetHttpProxy, error)
- func (m *MockBetaRegionTargetHttpProxies) Obj(o *computebeta.TargetHttpProxy) *MockRegionTargetHttpProxiesObj
- func (m *MockBetaRegionTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computebeta.UrlMapReference, ...) error
- type MockBetaRegionTargetHttpsProxies
- func (m *MockBetaRegionTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaRegionTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetHttpsProxy, error)
- func (m *MockBetaRegionTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpsProxy, ...) error
- func (m *MockBetaRegionTargetHttpsProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.TargetHttpsProxy, error)
- func (m *MockBetaRegionTargetHttpsProxies) Obj(o *computebeta.TargetHttpsProxy) *MockRegionTargetHttpsProxiesObj
- func (m *MockBetaRegionTargetHttpsProxies) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.TargetHttpsProxy, ...) error
- func (m *MockBetaRegionTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (m *MockBetaRegionTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computebeta.UrlMapReference, ...) error
- type MockBetaRegionUrlMaps
- func (m *MockBetaRegionUrlMaps) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaRegionUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.UrlMap, error)
- func (m *MockBetaRegionUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computebeta.UrlMap, options ...Option) error
- func (m *MockBetaRegionUrlMaps) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.UrlMap, error)
- func (m *MockBetaRegionUrlMaps) Obj(o *computebeta.UrlMap) *MockRegionUrlMapsObj
- func (m *MockBetaRegionUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.UrlMap, ...) error
- type MockBetaRouters
- func (m *MockBetaRouters) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computebeta.Router, error)
- func (m *MockBetaRouters) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaRouters) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Router, error)
- func (m *MockBetaRouters) GetRouterStatus(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.RouterStatusResponse, error)
- func (m *MockBetaRouters) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Router, options ...Option) error
- func (m *MockBetaRouters) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.Router, error)
- func (m *MockBetaRouters) Obj(o *computebeta.Router) *MockRoutersObj
- func (m *MockBetaRouters) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.Router, ...) error
- func (m *MockBetaRouters) Preview(ctx context.Context, key *meta.Key, arg0 *computebeta.Router, ...) (*computebeta.RoutersPreviewResponse, error)
- func (m *MockBetaRouters) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computebeta.TestPermissionsRequest, ...) (*computebeta.TestPermissionsResponse, error)
- type MockBetaSecurityPolicies
- func (m *MockBetaSecurityPolicies) AddRule(ctx context.Context, key *meta.Key, arg0 *computebeta.SecurityPolicyRule, ...) error
- func (m *MockBetaSecurityPolicies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaSecurityPolicies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.SecurityPolicy, error)
- func (m *MockBetaSecurityPolicies) GetRule(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.SecurityPolicyRule, error)
- func (m *MockBetaSecurityPolicies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.SecurityPolicy, ...) error
- func (m *MockBetaSecurityPolicies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.SecurityPolicy, error)
- func (m *MockBetaSecurityPolicies) Obj(o *computebeta.SecurityPolicy) *MockSecurityPoliciesObj
- func (m *MockBetaSecurityPolicies) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.SecurityPolicy, ...) error
- func (m *MockBetaSecurityPolicies) PatchRule(ctx context.Context, key *meta.Key, arg0 *computebeta.SecurityPolicyRule, ...) error
- func (m *MockBetaSecurityPolicies) RemoveRule(ctx context.Context, key *meta.Key, options ...Option) error
- type MockBetaServiceAttachments
- func (m *MockBetaServiceAttachments) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaServiceAttachments) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.ServiceAttachment, error)
- func (m *MockBetaServiceAttachments) Insert(ctx context.Context, key *meta.Key, obj *computebeta.ServiceAttachment, ...) error
- func (m *MockBetaServiceAttachments) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.ServiceAttachment, error)
- func (m *MockBetaServiceAttachments) Obj(o *computebeta.ServiceAttachment) *MockServiceAttachmentsObj
- func (m *MockBetaServiceAttachments) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.ServiceAttachment, ...) error
- type MockBetaSslCertificates
- func (m *MockBetaSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.SslCertificate, error)
- func (m *MockBetaSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computebeta.SslCertificate, ...) error
- func (m *MockBetaSslCertificates) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.SslCertificate, error)
- func (m *MockBetaSslCertificates) Obj(o *computebeta.SslCertificate) *MockSslCertificatesObj
- type MockBetaSubnetworks
- func (m *MockBetaSubnetworks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaSubnetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Subnetwork, error)
- func (m *MockBetaSubnetworks) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Subnetwork, ...) error
- func (m *MockBetaSubnetworks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.Subnetwork, error)
- func (m *MockBetaSubnetworks) ListUsable(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.UsableSubnetwork, error)
- func (m *MockBetaSubnetworks) Obj(o *computebeta.Subnetwork) *MockSubnetworksObj
- func (m *MockBetaSubnetworks) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.Subnetwork, ...) error
- type MockBetaTargetHttpProxies
- func (m *MockBetaTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetHttpProxy, error)
- func (m *MockBetaTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpProxy, ...) error
- func (m *MockBetaTargetHttpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.TargetHttpProxy, error)
- func (m *MockBetaTargetHttpProxies) Obj(o *computebeta.TargetHttpProxy) *MockTargetHttpProxiesObj
- func (m *MockBetaTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computebeta.UrlMapReference, ...) error
- type MockBetaTargetHttpsProxies
- func (m *MockBetaTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetHttpsProxy, error)
- func (m *MockBetaTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpsProxy, ...) error
- func (m *MockBetaTargetHttpsProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.TargetHttpsProxy, error)
- func (m *MockBetaTargetHttpsProxies) Obj(o *computebeta.TargetHttpsProxy) *MockTargetHttpsProxiesObj
- func (m *MockBetaTargetHttpsProxies) SetCertificateMap(ctx context.Context, key *meta.Key, ...) error
- func (m *MockBetaTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (m *MockBetaTargetHttpsProxies) SetSslPolicy(ctx context.Context, key *meta.Key, arg0 *computebeta.SslPolicyReference, ...) error
- func (m *MockBetaTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computebeta.UrlMapReference, ...) error
- type MockBetaTargetTcpProxies
- func (m *MockBetaTargetTcpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaTargetTcpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetTcpProxy, error)
- func (m *MockBetaTargetTcpProxies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetTcpProxy, ...) error
- func (m *MockBetaTargetTcpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.TargetTcpProxy, error)
- func (m *MockBetaTargetTcpProxies) Obj(o *computebeta.TargetTcpProxy) *MockTargetTcpProxiesObj
- func (m *MockBetaTargetTcpProxies) SetBackendService(ctx context.Context, key *meta.Key, ...) error
- type MockBetaTcpRoutes
- func (m *MockBetaTcpRoutes) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaTcpRoutes) Get(ctx context.Context, key *meta.Key, options ...Option) (*networkservicesbeta.TcpRoute, error)
- func (m *MockBetaTcpRoutes) Insert(ctx context.Context, key *meta.Key, obj *networkservicesbeta.TcpRoute, ...) error
- func (m *MockBetaTcpRoutes) List(ctx context.Context, fl *filter.F, options ...Option) ([]*networkservicesbeta.TcpRoute, error)
- func (m *MockBetaTcpRoutes) Obj(o *networkservicesbeta.TcpRoute) *MockTcpRoutesObj
- func (m *MockBetaTcpRoutes) Patch(ctx context.Context, key *meta.Key, arg0 *networkservicesbeta.TcpRoute, ...) error
- type MockBetaUrlMaps
- func (m *MockBetaUrlMaps) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockBetaUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.UrlMap, error)
- func (m *MockBetaUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computebeta.UrlMap, options ...Option) error
- func (m *MockBetaUrlMaps) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.UrlMap, error)
- func (m *MockBetaUrlMaps) Obj(o *computebeta.UrlMap) *MockUrlMapsObj
- func (m *MockBetaUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.UrlMap, ...) error
- type MockDisks
- func (m *MockDisks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockDisks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Disk, error)
- func (m *MockDisks) Insert(ctx context.Context, key *meta.Key, obj *computega.Disk, options ...Option) error
- func (m *MockDisks) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.Disk, error)
- func (m *MockDisks) Obj(o *computega.Disk) *MockDisksObj
- func (m *MockDisks) Resize(ctx context.Context, key *meta.Key, arg0 *computega.DisksResizeRequest, ...) error
- type MockDisksObj
- type MockFirewalls
- func (m *MockFirewalls) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockFirewalls) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Firewall, error)
- func (m *MockFirewalls) Insert(ctx context.Context, key *meta.Key, obj *computega.Firewall, options ...Option) error
- func (m *MockFirewalls) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Firewall, error)
- func (m *MockFirewalls) Obj(o *computega.Firewall) *MockFirewallsObj
- func (m *MockFirewalls) Patch(ctx context.Context, key *meta.Key, arg0 *computega.Firewall, ...) error
- func (m *MockFirewalls) Update(ctx context.Context, key *meta.Key, arg0 *computega.Firewall, ...) error
- type MockFirewallsObj
- type MockForwardingRules
- func (m *MockForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.ForwardingRule, error)
- func (m *MockForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computega.ForwardingRule, ...) error
- func (m *MockForwardingRules) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.ForwardingRule, error)
- func (m *MockForwardingRules) Obj(o *computega.ForwardingRule) *MockForwardingRulesObj
- func (m *MockForwardingRules) SetLabels(ctx context.Context, key *meta.Key, arg0 *computega.RegionSetLabelsRequest, ...) error
- func (m *MockForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *computega.TargetReference, ...) error
- type MockForwardingRulesObj
- type MockGCE
- func (mock *MockGCE) Addresses() Addresses
- func (mock *MockGCE) AlphaAddresses() AlphaAddresses
- func (mock *MockGCE) AlphaBackendServices() AlphaBackendServices
- func (mock *MockGCE) AlphaFirewalls() AlphaFirewalls
- func (mock *MockGCE) AlphaForwardingRules() AlphaForwardingRules
- func (mock *MockGCE) AlphaGlobalAddresses() AlphaGlobalAddresses
- func (mock *MockGCE) AlphaGlobalForwardingRules() AlphaGlobalForwardingRules
- func (mock *MockGCE) AlphaGlobalNetworkEndpointGroups() AlphaGlobalNetworkEndpointGroups
- func (mock *MockGCE) AlphaHealthChecks() AlphaHealthChecks
- func (mock *MockGCE) AlphaImages() AlphaImages
- func (mock *MockGCE) AlphaInstances() AlphaInstances
- func (mock *MockGCE) AlphaNetworkEndpointGroups() AlphaNetworkEndpointGroups
- func (mock *MockGCE) AlphaNetworkFirewallPolicies() AlphaNetworkFirewallPolicies
- func (mock *MockGCE) AlphaNetworks() AlphaNetworks
- func (mock *MockGCE) AlphaRegionBackendServices() AlphaRegionBackendServices
- func (mock *MockGCE) AlphaRegionHealthChecks() AlphaRegionHealthChecks
- func (mock *MockGCE) AlphaRegionNetworkEndpointGroups() AlphaRegionNetworkEndpointGroups
- func (mock *MockGCE) AlphaRegionNetworkFirewallPolicies() AlphaRegionNetworkFirewallPolicies
- func (mock *MockGCE) AlphaRegionSslCertificates() AlphaRegionSslCertificates
- func (mock *MockGCE) AlphaRegionTargetHttpProxies() AlphaRegionTargetHttpProxies
- func (mock *MockGCE) AlphaRegionTargetHttpsProxies() AlphaRegionTargetHttpsProxies
- func (mock *MockGCE) AlphaRegionUrlMaps() AlphaRegionUrlMaps
- func (mock *MockGCE) AlphaRouters() AlphaRouters
- func (mock *MockGCE) AlphaServiceAttachments() AlphaServiceAttachments
- func (mock *MockGCE) AlphaSslCertificates() AlphaSslCertificates
- func (mock *MockGCE) AlphaSubnetworks() AlphaSubnetworks
- func (mock *MockGCE) AlphaTargetHttpProxies() AlphaTargetHttpProxies
- func (mock *MockGCE) AlphaTargetHttpsProxies() AlphaTargetHttpsProxies
- func (mock *MockGCE) AlphaTargetTcpProxies() AlphaTargetTcpProxies
- func (mock *MockGCE) AlphaUrlMaps() AlphaUrlMaps
- func (mock *MockGCE) BackendServices() BackendServices
- func (mock *MockGCE) BetaAddresses() BetaAddresses
- func (mock *MockGCE) BetaBackendServices() BetaBackendServices
- func (mock *MockGCE) BetaFirewalls() BetaFirewalls
- func (mock *MockGCE) BetaForwardingRules() BetaForwardingRules
- func (mock *MockGCE) BetaGlobalAddresses() BetaGlobalAddresses
- func (mock *MockGCE) BetaGlobalForwardingRules() BetaGlobalForwardingRules
- func (mock *MockGCE) BetaGlobalNetworkEndpointGroups() BetaGlobalNetworkEndpointGroups
- func (mock *MockGCE) BetaHealthChecks() BetaHealthChecks
- func (mock *MockGCE) BetaImages() BetaImages
- func (mock *MockGCE) BetaInstances() BetaInstances
- func (mock *MockGCE) BetaMeshes() BetaMeshes
- func (mock *MockGCE) BetaNetworkEndpointGroups() BetaNetworkEndpointGroups
- func (mock *MockGCE) BetaNetworks() BetaNetworks
- func (mock *MockGCE) BetaRegionBackendServices() BetaRegionBackendServices
- func (mock *MockGCE) BetaRegionHealthChecks() BetaRegionHealthChecks
- func (mock *MockGCE) BetaRegionNetworkEndpointGroups() BetaRegionNetworkEndpointGroups
- func (mock *MockGCE) BetaRegionSslCertificates() BetaRegionSslCertificates
- func (mock *MockGCE) BetaRegionTargetHttpProxies() BetaRegionTargetHttpProxies
- func (mock *MockGCE) BetaRegionTargetHttpsProxies() BetaRegionTargetHttpsProxies
- func (mock *MockGCE) BetaRegionUrlMaps() BetaRegionUrlMaps
- func (mock *MockGCE) BetaRouters() BetaRouters
- func (mock *MockGCE) BetaSecurityPolicies() BetaSecurityPolicies
- func (mock *MockGCE) BetaServiceAttachments() BetaServiceAttachments
- func (mock *MockGCE) BetaSslCertificates() BetaSslCertificates
- func (mock *MockGCE) BetaSubnetworks() BetaSubnetworks
- func (mock *MockGCE) BetaTargetHttpProxies() BetaTargetHttpProxies
- func (mock *MockGCE) BetaTargetHttpsProxies() BetaTargetHttpsProxies
- func (mock *MockGCE) BetaTargetTcpProxies() BetaTargetTcpProxies
- func (mock *MockGCE) BetaTcpRoutes() BetaTcpRoutes
- func (mock *MockGCE) BetaUrlMaps() BetaUrlMaps
- func (mock *MockGCE) Disks() Disks
- func (mock *MockGCE) Firewalls() Firewalls
- func (mock *MockGCE) ForwardingRules() ForwardingRules
- func (mock *MockGCE) GlobalAddresses() GlobalAddresses
- func (mock *MockGCE) GlobalForwardingRules() GlobalForwardingRules
- func (mock *MockGCE) GlobalNetworkEndpointGroups() GlobalNetworkEndpointGroups
- func (mock *MockGCE) HealthChecks() HealthChecks
- func (mock *MockGCE) HttpHealthChecks() HttpHealthChecks
- func (mock *MockGCE) HttpsHealthChecks() HttpsHealthChecks
- func (mock *MockGCE) Images() Images
- func (mock *MockGCE) InstanceGroupManagers() InstanceGroupManagers
- func (mock *MockGCE) InstanceGroups() InstanceGroups
- func (mock *MockGCE) InstanceTemplates() InstanceTemplates
- func (mock *MockGCE) Instances() Instances
- func (mock *MockGCE) Meshes() Meshes
- func (mock *MockGCE) NetworkEndpointGroups() NetworkEndpointGroups
- func (mock *MockGCE) Networks() Networks
- func (mock *MockGCE) Projects() Projects
- func (mock *MockGCE) RegionBackendServices() RegionBackendServices
- func (mock *MockGCE) RegionDisks() RegionDisks
- func (mock *MockGCE) RegionHealthChecks() RegionHealthChecks
- func (mock *MockGCE) RegionNetworkEndpointGroups() RegionNetworkEndpointGroups
- func (mock *MockGCE) RegionSslCertificates() RegionSslCertificates
- func (mock *MockGCE) RegionSslPolicies() RegionSslPolicies
- func (mock *MockGCE) RegionTargetHttpProxies() RegionTargetHttpProxies
- func (mock *MockGCE) RegionTargetHttpsProxies() RegionTargetHttpsProxies
- func (mock *MockGCE) RegionUrlMaps() RegionUrlMaps
- func (mock *MockGCE) Regions() Regions
- func (mock *MockGCE) Routers() Routers
- func (mock *MockGCE) Routes() Routes
- func (mock *MockGCE) ServiceAttachments() ServiceAttachments
- func (mock *MockGCE) SslCertificates() SslCertificates
- func (mock *MockGCE) SslPolicies() SslPolicies
- func (mock *MockGCE) Subnetworks() Subnetworks
- func (mock *MockGCE) TargetHttpProxies() TargetHttpProxies
- func (mock *MockGCE) TargetHttpsProxies() TargetHttpsProxies
- func (mock *MockGCE) TargetPools() TargetPools
- func (mock *MockGCE) TargetTcpProxies() TargetTcpProxies
- func (mock *MockGCE) TcpRoutes() TcpRoutes
- func (mock *MockGCE) UrlMaps() UrlMaps
- func (mock *MockGCE) Zones() Zones
- type MockGlobalAddresses
- func (m *MockGlobalAddresses) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockGlobalAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Address, error)
- func (m *MockGlobalAddresses) Insert(ctx context.Context, key *meta.Key, obj *computega.Address, options ...Option) error
- func (m *MockGlobalAddresses) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Address, error)
- func (m *MockGlobalAddresses) Obj(o *computega.Address) *MockGlobalAddressesObj
- type MockGlobalAddressesObj
- type MockGlobalForwardingRules
- func (m *MockGlobalForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockGlobalForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.ForwardingRule, error)
- func (m *MockGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computega.ForwardingRule, ...) error
- func (m *MockGlobalForwardingRules) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.ForwardingRule, error)
- func (m *MockGlobalForwardingRules) Obj(o *computega.ForwardingRule) *MockGlobalForwardingRulesObj
- func (m *MockGlobalForwardingRules) SetLabels(ctx context.Context, key *meta.Key, arg0 *computega.GlobalSetLabelsRequest, ...) error
- func (m *MockGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *computega.TargetReference, ...) error
- type MockGlobalForwardingRulesObj
- type MockGlobalNetworkEndpointGroups
- func (m *MockGlobalNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockGlobalNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockGlobalNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockGlobalNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.NetworkEndpointGroup, error)
- func (m *MockGlobalNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computega.NetworkEndpointGroup, ...) error
- func (m *MockGlobalNetworkEndpointGroups) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointGroup, error)
- func (m *MockGlobalNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointWithHealthStatus, error)
- func (m *MockGlobalNetworkEndpointGroups) Obj(o *computega.NetworkEndpointGroup) *MockGlobalNetworkEndpointGroupsObj
- type MockGlobalNetworkEndpointGroupsObj
- type MockHealthChecks
- func (m *MockHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.HealthCheck, error)
- func (m *MockHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computega.HealthCheck, ...) error
- func (m *MockHealthChecks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.HealthCheck, error)
- func (m *MockHealthChecks) Obj(o *computega.HealthCheck) *MockHealthChecksObj
- func (m *MockHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computega.HealthCheck, ...) error
- type MockHealthChecksObj
- type MockHttpHealthChecks
- func (m *MockHttpHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockHttpHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.HttpHealthCheck, error)
- func (m *MockHttpHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computega.HttpHealthCheck, ...) error
- func (m *MockHttpHealthChecks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.HttpHealthCheck, error)
- func (m *MockHttpHealthChecks) Obj(o *computega.HttpHealthCheck) *MockHttpHealthChecksObj
- func (m *MockHttpHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computega.HttpHealthCheck, ...) error
- type MockHttpHealthChecksObj
- type MockHttpsHealthChecks
- func (m *MockHttpsHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockHttpsHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.HttpsHealthCheck, error)
- func (m *MockHttpsHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computega.HttpsHealthCheck, ...) error
- func (m *MockHttpsHealthChecks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.HttpsHealthCheck, error)
- func (m *MockHttpsHealthChecks) Obj(o *computega.HttpsHealthCheck) *MockHttpsHealthChecksObj
- func (m *MockHttpsHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computega.HttpsHealthCheck, ...) error
- type MockHttpsHealthChecksObj
- type MockImages
- func (m *MockImages) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockImages) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Image, error)
- func (m *MockImages) GetFromFamily(ctx context.Context, key *meta.Key, options ...Option) (*computega.Image, error)
- func (m *MockImages) GetIamPolicy(ctx context.Context, key *meta.Key, options ...Option) (*computega.Policy, error)
- func (m *MockImages) Insert(ctx context.Context, key *meta.Key, obj *computega.Image, options ...Option) error
- func (m *MockImages) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Image, error)
- func (m *MockImages) Obj(o *computega.Image) *MockImagesObj
- func (m *MockImages) Patch(ctx context.Context, key *meta.Key, arg0 *computega.Image, options ...Option) error
- func (m *MockImages) SetIamPolicy(ctx context.Context, key *meta.Key, arg0 *computega.GlobalSetPolicyRequest, ...) (*computega.Policy, error)
- func (m *MockImages) SetLabels(ctx context.Context, key *meta.Key, arg0 *computega.GlobalSetLabelsRequest, ...) error
- func (m *MockImages) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computega.TestPermissionsRequest, ...) (*computega.TestPermissionsResponse, error)
- type MockImagesObj
- type MockInstanceGroupManagers
- func (m *MockInstanceGroupManagers) CreateInstances(ctx context.Context, key *meta.Key, ...) error
- func (m *MockInstanceGroupManagers) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockInstanceGroupManagers) DeleteInstances(ctx context.Context, key *meta.Key, ...) error
- func (m *MockInstanceGroupManagers) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.InstanceGroupManager, error)
- func (m *MockInstanceGroupManagers) Insert(ctx context.Context, key *meta.Key, obj *computega.InstanceGroupManager, ...) error
- func (m *MockInstanceGroupManagers) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.InstanceGroupManager, error)
- func (m *MockInstanceGroupManagers) Obj(o *computega.InstanceGroupManager) *MockInstanceGroupManagersObj
- func (m *MockInstanceGroupManagers) Resize(ctx context.Context, key *meta.Key, arg0 int64, options ...Option) error
- func (m *MockInstanceGroupManagers) SetInstanceTemplate(ctx context.Context, key *meta.Key, ...) error
- type MockInstanceGroupManagersObj
- type MockInstanceGroups
- func (m *MockInstanceGroups) AddInstances(ctx context.Context, key *meta.Key, ...) error
- func (m *MockInstanceGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockInstanceGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.InstanceGroup, error)
- func (m *MockInstanceGroups) Insert(ctx context.Context, key *meta.Key, obj *computega.InstanceGroup, ...) error
- func (m *MockInstanceGroups) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.InstanceGroup, error)
- func (m *MockInstanceGroups) ListInstances(ctx context.Context, key *meta.Key, ...) ([]*computega.InstanceWithNamedPorts, error)
- func (m *MockInstanceGroups) Obj(o *computega.InstanceGroup) *MockInstanceGroupsObj
- func (m *MockInstanceGroups) RemoveInstances(ctx context.Context, key *meta.Key, ...) error
- func (m *MockInstanceGroups) SetNamedPorts(ctx context.Context, key *meta.Key, ...) error
- type MockInstanceGroupsObj
- type MockInstanceTemplates
- func (m *MockInstanceTemplates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockInstanceTemplates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.InstanceTemplate, error)
- func (m *MockInstanceTemplates) Insert(ctx context.Context, key *meta.Key, obj *computega.InstanceTemplate, ...) error
- func (m *MockInstanceTemplates) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.InstanceTemplate, error)
- func (m *MockInstanceTemplates) Obj(o *computega.InstanceTemplate) *MockInstanceTemplatesObj
- type MockInstanceTemplatesObj
- type MockInstances
- func (m *MockInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *computega.AttachedDisk, ...) error
- func (m *MockInstances) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockInstances) DetachDisk(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
- func (m *MockInstances) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Instance, error)
- func (m *MockInstances) Insert(ctx context.Context, key *meta.Key, obj *computega.Instance, options ...Option) error
- func (m *MockInstances) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.Instance, error)
- func (m *MockInstances) Obj(o *computega.Instance) *MockInstancesObj
- type MockInstancesObj
- type MockMeshes
- func (m *MockMeshes) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockMeshes) Get(ctx context.Context, key *meta.Key, options ...Option) (*networkservicesga.Mesh, error)
- func (m *MockMeshes) Insert(ctx context.Context, key *meta.Key, obj *networkservicesga.Mesh, ...) error
- func (m *MockMeshes) List(ctx context.Context, fl *filter.F, options ...Option) ([]*networkservicesga.Mesh, error)
- func (m *MockMeshes) Obj(o *networkservicesga.Mesh) *MockMeshesObj
- func (m *MockMeshes) Patch(ctx context.Context, key *meta.Key, arg0 *networkservicesga.Mesh, ...) error
- type MockMeshesObj
- type MockNetworkEndpointGroups
- func (m *MockNetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computega.NetworkEndpointGroup, error)
- func (m *MockNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.NetworkEndpointGroup, error)
- func (m *MockNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computega.NetworkEndpointGroup, ...) error
- func (m *MockNetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointGroup, error)
- func (m *MockNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, ...) ([]*computega.NetworkEndpointWithHealthStatus, error)
- func (m *MockNetworkEndpointGroups) Obj(o *computega.NetworkEndpointGroup) *MockNetworkEndpointGroupsObj
- type MockNetworkEndpointGroupsObj
- type MockNetworkFirewallPoliciesObj
- type MockNetworks
- func (m *MockNetworks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockNetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Network, error)
- func (m *MockNetworks) Insert(ctx context.Context, key *meta.Key, obj *computega.Network, options ...Option) error
- func (m *MockNetworks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Network, error)
- func (m *MockNetworks) Obj(o *computega.Network) *MockNetworksObj
- type MockNetworksObj
- type MockProjectOpsState
- type MockProjects
- type MockProjectsObj
- type MockRegionBackendServices
- func (m *MockRegionBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockRegionBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.BackendService, error)
- func (m *MockRegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *computega.ResourceGroupReference, ...) (*computega.BackendServiceGroupHealth, error)
- func (m *MockRegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computega.BackendService, ...) error
- func (m *MockRegionBackendServices) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.BackendService, error)
- func (m *MockRegionBackendServices) Obj(o *computega.BackendService) *MockRegionBackendServicesObj
- func (m *MockRegionBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computega.BackendService, ...) error
- func (m *MockRegionBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computega.SecurityPolicyReference, ...) error
- func (m *MockRegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *computega.BackendService, ...) error
- type MockRegionBackendServicesObj
- type MockRegionDisks
- func (m *MockRegionDisks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockRegionDisks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Disk, error)
- func (m *MockRegionDisks) Insert(ctx context.Context, key *meta.Key, obj *computega.Disk, options ...Option) error
- func (m *MockRegionDisks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.Disk, error)
- func (m *MockRegionDisks) Obj(o *computega.Disk) *MockRegionDisksObj
- func (m *MockRegionDisks) Resize(ctx context.Context, key *meta.Key, arg0 *computega.RegionDisksResizeRequest, ...) error
- type MockRegionDisksObj
- type MockRegionHealthChecks
- func (m *MockRegionHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockRegionHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.HealthCheck, error)
- func (m *MockRegionHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computega.HealthCheck, ...) error
- func (m *MockRegionHealthChecks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.HealthCheck, error)
- func (m *MockRegionHealthChecks) Obj(o *computega.HealthCheck) *MockRegionHealthChecksObj
- func (m *MockRegionHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computega.HealthCheck, ...) error
- type MockRegionHealthChecksObj
- type MockRegionNetworkEndpointGroups
- func (m *MockRegionNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockRegionNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockRegionNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, ...) error
- func (m *MockRegionNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.NetworkEndpointGroup, error)
- func (m *MockRegionNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computega.NetworkEndpointGroup, ...) error
- func (m *MockRegionNetworkEndpointGroups) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointGroup, error)
- func (m *MockRegionNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointWithHealthStatus, error)
- func (m *MockRegionNetworkEndpointGroups) Obj(o *computega.NetworkEndpointGroup) *MockRegionNetworkEndpointGroupsObj
- type MockRegionNetworkEndpointGroupsObj
- type MockRegionNetworkFirewallPoliciesObj
- type MockRegionSslCertificates
- func (m *MockRegionSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockRegionSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.SslCertificate, error)
- func (m *MockRegionSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computega.SslCertificate, ...) error
- func (m *MockRegionSslCertificates) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.SslCertificate, error)
- func (m *MockRegionSslCertificates) Obj(o *computega.SslCertificate) *MockRegionSslCertificatesObj
- type MockRegionSslCertificatesObj
- type MockRegionSslPolicies
- func (m *MockRegionSslPolicies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockRegionSslPolicies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.SslPolicy, error)
- func (m *MockRegionSslPolicies) Insert(ctx context.Context, key *meta.Key, obj *computega.SslPolicy, ...) error
- func (m *MockRegionSslPolicies) Obj(o *computega.SslPolicy) *MockRegionSslPoliciesObj
- type MockRegionSslPoliciesObj
- type MockRegionTargetHttpProxies
- func (m *MockRegionTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockRegionTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetHttpProxy, error)
- func (m *MockRegionTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetHttpProxy, ...) error
- func (m *MockRegionTargetHttpProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.TargetHttpProxy, error)
- func (m *MockRegionTargetHttpProxies) Obj(o *computega.TargetHttpProxy) *MockRegionTargetHttpProxiesObj
- func (m *MockRegionTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computega.UrlMapReference, ...) error
- type MockRegionTargetHttpProxiesObj
- type MockRegionTargetHttpsProxies
- func (m *MockRegionTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockRegionTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetHttpsProxy, error)
- func (m *MockRegionTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetHttpsProxy, ...) error
- func (m *MockRegionTargetHttpsProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.TargetHttpsProxy, error)
- func (m *MockRegionTargetHttpsProxies) Obj(o *computega.TargetHttpsProxy) *MockRegionTargetHttpsProxiesObj
- func (m *MockRegionTargetHttpsProxies) Patch(ctx context.Context, key *meta.Key, arg0 *computega.TargetHttpsProxy, ...) error
- func (m *MockRegionTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (m *MockRegionTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computega.UrlMapReference, ...) error
- type MockRegionTargetHttpsProxiesObj
- type MockRegionUrlMaps
- func (m *MockRegionUrlMaps) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockRegionUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.UrlMap, error)
- func (m *MockRegionUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computega.UrlMap, options ...Option) error
- func (m *MockRegionUrlMaps) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.UrlMap, error)
- func (m *MockRegionUrlMaps) Obj(o *computega.UrlMap) *MockRegionUrlMapsObj
- func (m *MockRegionUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *computega.UrlMap, options ...Option) error
- type MockRegionUrlMapsObj
- type MockRegions
- type MockRegionsObj
- type MockRouters
- func (m *MockRouters) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computega.Router, error)
- func (m *MockRouters) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockRouters) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Router, error)
- func (m *MockRouters) GetRouterStatus(ctx context.Context, key *meta.Key, options ...Option) (*computega.RouterStatusResponse, error)
- func (m *MockRouters) Insert(ctx context.Context, key *meta.Key, obj *computega.Router, options ...Option) error
- func (m *MockRouters) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.Router, error)
- func (m *MockRouters) Obj(o *computega.Router) *MockRoutersObj
- func (m *MockRouters) Patch(ctx context.Context, key *meta.Key, arg0 *computega.Router, options ...Option) error
- func (m *MockRouters) Preview(ctx context.Context, key *meta.Key, arg0 *computega.Router, options ...Option) (*computega.RoutersPreviewResponse, error)
- type MockRoutersObj
- type MockRoutes
- func (m *MockRoutes) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockRoutes) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Route, error)
- func (m *MockRoutes) Insert(ctx context.Context, key *meta.Key, obj *computega.Route, options ...Option) error
- func (m *MockRoutes) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Route, error)
- func (m *MockRoutes) Obj(o *computega.Route) *MockRoutesObj
- type MockRoutesObj
- type MockSecurityPoliciesObj
- type MockServiceAttachments
- func (m *MockServiceAttachments) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockServiceAttachments) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.ServiceAttachment, error)
- func (m *MockServiceAttachments) Insert(ctx context.Context, key *meta.Key, obj *computega.ServiceAttachment, ...) error
- func (m *MockServiceAttachments) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.ServiceAttachment, error)
- func (m *MockServiceAttachments) Obj(o *computega.ServiceAttachment) *MockServiceAttachmentsObj
- func (m *MockServiceAttachments) Patch(ctx context.Context, key *meta.Key, arg0 *computega.ServiceAttachment, ...) error
- type MockServiceAttachmentsObj
- type MockSslCertificates
- func (m *MockSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.SslCertificate, error)
- func (m *MockSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computega.SslCertificate, ...) error
- func (m *MockSslCertificates) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.SslCertificate, error)
- func (m *MockSslCertificates) Obj(o *computega.SslCertificate) *MockSslCertificatesObj
- type MockSslCertificatesObj
- type MockSslPolicies
- func (m *MockSslPolicies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockSslPolicies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.SslPolicy, error)
- func (m *MockSslPolicies) Insert(ctx context.Context, key *meta.Key, obj *computega.SslPolicy, ...) error
- func (m *MockSslPolicies) Obj(o *computega.SslPolicy) *MockSslPoliciesObj
- type MockSslPoliciesObj
- type MockSubnetworks
- func (m *MockSubnetworks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockSubnetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Subnetwork, error)
- func (m *MockSubnetworks) Insert(ctx context.Context, key *meta.Key, obj *computega.Subnetwork, ...) error
- func (m *MockSubnetworks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.Subnetwork, error)
- func (m *MockSubnetworks) ListUsable(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.UsableSubnetwork, error)
- func (m *MockSubnetworks) Obj(o *computega.Subnetwork) *MockSubnetworksObj
- func (m *MockSubnetworks) Patch(ctx context.Context, key *meta.Key, arg0 *computega.Subnetwork, ...) error
- type MockSubnetworksObj
- type MockTargetHttpProxies
- func (m *MockTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetHttpProxy, error)
- func (m *MockTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetHttpProxy, ...) error
- func (m *MockTargetHttpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.TargetHttpProxy, error)
- func (m *MockTargetHttpProxies) Obj(o *computega.TargetHttpProxy) *MockTargetHttpProxiesObj
- func (m *MockTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computega.UrlMapReference, ...) error
- type MockTargetHttpProxiesObj
- type MockTargetHttpsProxies
- func (m *MockTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetHttpsProxy, error)
- func (m *MockTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetHttpsProxy, ...) error
- func (m *MockTargetHttpsProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.TargetHttpsProxy, error)
- func (m *MockTargetHttpsProxies) Obj(o *computega.TargetHttpsProxy) *MockTargetHttpsProxiesObj
- func (m *MockTargetHttpsProxies) SetCertificateMap(ctx context.Context, key *meta.Key, ...) error
- func (m *MockTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, ...) error
- func (m *MockTargetHttpsProxies) SetSslPolicy(ctx context.Context, key *meta.Key, arg0 *computega.SslPolicyReference, ...) error
- func (m *MockTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computega.UrlMapReference, ...) error
- type MockTargetHttpsProxiesObj
- type MockTargetPools
- func (m *MockTargetPools) AddInstance(ctx context.Context, key *meta.Key, ...) error
- func (m *MockTargetPools) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockTargetPools) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetPool, error)
- func (m *MockTargetPools) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetPool, ...) error
- func (m *MockTargetPools) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.TargetPool, error)
- func (m *MockTargetPools) Obj(o *computega.TargetPool) *MockTargetPoolsObj
- func (m *MockTargetPools) RemoveInstance(ctx context.Context, key *meta.Key, ...) error
- type MockTargetPoolsObj
- type MockTargetTcpProxies
- func (m *MockTargetTcpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockTargetTcpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetTcpProxy, error)
- func (m *MockTargetTcpProxies) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetTcpProxy, ...) error
- func (m *MockTargetTcpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.TargetTcpProxy, error)
- func (m *MockTargetTcpProxies) Obj(o *computega.TargetTcpProxy) *MockTargetTcpProxiesObj
- func (m *MockTargetTcpProxies) SetBackendService(ctx context.Context, key *meta.Key, ...) error
- type MockTargetTcpProxiesObj
- type MockTcpRoutes
- func (m *MockTcpRoutes) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockTcpRoutes) Get(ctx context.Context, key *meta.Key, options ...Option) (*networkservicesga.TcpRoute, error)
- func (m *MockTcpRoutes) Insert(ctx context.Context, key *meta.Key, obj *networkservicesga.TcpRoute, ...) error
- func (m *MockTcpRoutes) List(ctx context.Context, fl *filter.F, options ...Option) ([]*networkservicesga.TcpRoute, error)
- func (m *MockTcpRoutes) Obj(o *networkservicesga.TcpRoute) *MockTcpRoutesObj
- func (m *MockTcpRoutes) Patch(ctx context.Context, key *meta.Key, arg0 *networkservicesga.TcpRoute, ...) error
- type MockTcpRoutesObj
- type MockUrlMaps
- func (m *MockUrlMaps) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (m *MockUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.UrlMap, error)
- func (m *MockUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computega.UrlMap, options ...Option) error
- func (m *MockUrlMaps) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.UrlMap, error)
- func (m *MockUrlMaps) Obj(o *computega.UrlMap) *MockUrlMapsObj
- func (m *MockUrlMaps) Update(ctx context.Context, key *meta.Key, arg0 *computega.UrlMap, options ...Option) error
- type MockUrlMapsObj
- type MockZones
- type MockZonesObj
- type NetworkEndpointGroups
- type NetworkTier
- type Networks
- type NopRateLimiter
- type Option
- type ProjectRouter
- type Projects
- type ProjectsOps
- type RateLimitKey
- type RateLimiter
- type RegionBackendServices
- type RegionDisks
- type RegionHealthChecks
- type RegionNetworkEndpointGroups
- type RegionSslCertificates
- type RegionSslPolicies
- type RegionTargetHttpProxies
- type RegionTargetHttpsProxies
- type RegionUrlMaps
- type Regions
- type ResourceID
- func NewAddressesResourceID(project, region, name string) *ResourceID
- func NewBackendServicesResourceID(project, name string) *ResourceID
- func NewDisksResourceID(project, zone, name string) *ResourceID
- func NewFirewallsResourceID(project, name string) *ResourceID
- func NewForwardingRulesResourceID(project, region, name string) *ResourceID
- func NewGlobalAddressesResourceID(project, name string) *ResourceID
- func NewGlobalForwardingRulesResourceID(project, name string) *ResourceID
- func NewGlobalNetworkEndpointGroupsResourceID(project, name string) *ResourceID
- func NewHealthChecksResourceID(project, name string) *ResourceID
- func NewHttpHealthChecksResourceID(project, name string) *ResourceID
- func NewHttpsHealthChecksResourceID(project, name string) *ResourceID
- func NewImagesResourceID(project, name string) *ResourceID
- func NewInstanceGroupManagersResourceID(project, zone, name string) *ResourceID
- func NewInstanceGroupsResourceID(project, zone, name string) *ResourceID
- func NewInstanceTemplatesResourceID(project, name string) *ResourceID
- func NewInstancesResourceID(project, zone, name string) *ResourceID
- func NewMeshesResourceID(project, name string) *ResourceID
- func NewNetworkEndpointGroupsResourceID(project, zone, name string) *ResourceID
- func NewNetworkFirewallPoliciesResourceID(project, name string) *ResourceID
- func NewNetworksResourceID(project, name string) *ResourceID
- func NewProjectsResourceID(project string) *ResourceID
- func NewRegionBackendServicesResourceID(project, region, name string) *ResourceID
- func NewRegionDisksResourceID(project, region, name string) *ResourceID
- func NewRegionHealthChecksResourceID(project, region, name string) *ResourceID
- func NewRegionNetworkEndpointGroupsResourceID(project, region, name string) *ResourceID
- func NewRegionNetworkFirewallPoliciesResourceID(project, region, name string) *ResourceID
- func NewRegionSslCertificatesResourceID(project, region, name string) *ResourceID
- func NewRegionSslPoliciesResourceID(project, region, name string) *ResourceID
- func NewRegionTargetHttpProxiesResourceID(project, region, name string) *ResourceID
- func NewRegionTargetHttpsProxiesResourceID(project, region, name string) *ResourceID
- func NewRegionUrlMapsResourceID(project, region, name string) *ResourceID
- func NewRegionsResourceID(project, name string) *ResourceID
- func NewRoutersResourceID(project, region, name string) *ResourceID
- func NewRoutesResourceID(project, name string) *ResourceID
- func NewSecurityPoliciesResourceID(project, name string) *ResourceID
- func NewServiceAttachmentsResourceID(project, region, name string) *ResourceID
- func NewSslCertificatesResourceID(project, name string) *ResourceID
- func NewSslPoliciesResourceID(project, name string) *ResourceID
- func NewSubnetworksResourceID(project, region, name string) *ResourceID
- func NewTargetHttpProxiesResourceID(project, name string) *ResourceID
- func NewTargetHttpsProxiesResourceID(project, name string) *ResourceID
- func NewTargetPoolsResourceID(project, region, name string) *ResourceID
- func NewTargetTcpProxiesResourceID(project, name string) *ResourceID
- func NewTcpRoutesResourceID(project, name string) *ResourceID
- func NewUrlMapsResourceID(project, name string) *ResourceID
- func NewZonesResourceID(project, name string) *ResourceID
- func ParseResourceURL(url string) (*ResourceID, error)
- type ResourceMapKey
- type Routers
- type Routes
- type Service
- type ServiceAttachments
- type SingleProjectRouter
- type SslCertificates
- type SslPolicies
- type Subnetworks
- type TDBetaMeshes
- func (g *TDBetaMeshes) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *TDBetaMeshes) Get(ctx context.Context, key *meta.Key, options ...Option) (*networkservicesbeta.Mesh, error)
- func (g *TDBetaMeshes) Insert(ctx context.Context, key *meta.Key, obj *networkservicesbeta.Mesh, ...) error
- func (g *TDBetaMeshes) List(ctx context.Context, fl *filter.F, options ...Option) ([]*networkservicesbeta.Mesh, error)
- func (g *TDBetaMeshes) Patch(ctx context.Context, key *meta.Key, arg0 *networkservicesbeta.Mesh, ...) error
- type TDBetaTcpRoutes
- func (g *TDBetaTcpRoutes) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *TDBetaTcpRoutes) Get(ctx context.Context, key *meta.Key, options ...Option) (*networkservicesbeta.TcpRoute, error)
- func (g *TDBetaTcpRoutes) Insert(ctx context.Context, key *meta.Key, obj *networkservicesbeta.TcpRoute, ...) error
- func (g *TDBetaTcpRoutes) List(ctx context.Context, fl *filter.F, options ...Option) ([]*networkservicesbeta.TcpRoute, error)
- func (g *TDBetaTcpRoutes) Patch(ctx context.Context, key *meta.Key, arg0 *networkservicesbeta.TcpRoute, ...) error
- type TDMeshes
- func (g *TDMeshes) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *TDMeshes) Get(ctx context.Context, key *meta.Key, options ...Option) (*networkservicesga.Mesh, error)
- func (g *TDMeshes) Insert(ctx context.Context, key *meta.Key, obj *networkservicesga.Mesh, ...) error
- func (g *TDMeshes) List(ctx context.Context, fl *filter.F, options ...Option) ([]*networkservicesga.Mesh, error)
- func (g *TDMeshes) Patch(ctx context.Context, key *meta.Key, arg0 *networkservicesga.Mesh, ...) error
- type TDTcpRoutes
- func (g *TDTcpRoutes) Delete(ctx context.Context, key *meta.Key, options ...Option) error
- func (g *TDTcpRoutes) Get(ctx context.Context, key *meta.Key, options ...Option) (*networkservicesga.TcpRoute, error)
- func (g *TDTcpRoutes) Insert(ctx context.Context, key *meta.Key, obj *networkservicesga.TcpRoute, ...) error
- func (g *TDTcpRoutes) List(ctx context.Context, fl *filter.F, options ...Option) ([]*networkservicesga.TcpRoute, error)
- func (g *TDTcpRoutes) Patch(ctx context.Context, key *meta.Key, arg0 *networkservicesga.TcpRoute, ...) error
- type TargetHttpProxies
- type TargetHttpsProxies
- type TargetPools
- type TargetTcpProxies
- type TcpRoutes
- type TickerRateLimiter
- type UrlMaps
- type Zones
Constants ¶
const ( NetworkTierStandard NetworkTier = "Standard" NetworkTierPremium NetworkTier = "Premium" NetworkTierDefault NetworkTier = NetworkTierPremium SchemeExternal LbScheme = "EXTERNAL" SchemeInternal LbScheme = "INTERNAL" )
Variables ¶
var ( // OperationsUseWait set to true to switch to using /Wait vs /Get. This should be a // transparent change to the clients and this option will be removed once we have // confidence that there are no issues with switching to the new method. OperationsUseWait = true )
Functions ¶
func ContextWithCallTimeout ¶
func ContextWithCallTimeout() (context.Context, context.CancelFunc)
ContextWithCallTimeout returns a context with a default timeout, used for generated client calls.
func RelativeResourceName ¶
RelativeResourceName returns the path starting from project. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet Deprecated: Use SelfLinkWithGroup instead
func ResourcePath ¶
ResourcePath returns the path starting from the location. Example: regions/us-central1/subnetworks/my-subnet Deprecated: Use SelfLinkWithGroup instead
func SelfLink ¶
SelfLink returns a URL representing the resource and assumes Compute API Group. Deprecated: Use SelfLinkWithGroup instead
func SelfLinkWithGroup ¶ added in v1.25.0
func SelfLinkWithGroup(apiGroup meta.APIGroup, ver meta.Version, project, resource string, key *meta.Key) string
SelfLinkWithGroup returns the self link URL for the given object.
func SetAPIDomain ¶ added in v1.21.0
func SetAPIDomain(domain string)
SetAPIDomain sets the root of the URL for the API. The default domain is "https://www.googleapis.com".
func WithCallObserver ¶ added in v1.22.0
func WithCallObserver(ctx context.Context, obs CallObserver) context.Context
WithCallObserver adds a CallObserver that will be called on the operation being called.
type obs struct{} func (o *obs) Start(...) { fmt.Println("start") } func (o *obs) End(...) { fmt.Println("end") } ctx := WithCallObserver(ctx, &obs{}) g.Addresses.Insert(ctx, ...)
Types ¶
type AcceptRateLimiter ¶
type AcceptRateLimiter struct {
// Acceptor is the underlying rate limiter.
Acceptor acceptor
}
AcceptRateLimiter wraps an Acceptor with RateLimiter parameters.
func (*AcceptRateLimiter) Accept ¶
func (rl *AcceptRateLimiter) Accept(ctx context.Context, _ *RateLimitKey) error
Accept wraps an Acceptor and blocks on Accept or context.Done(). Key is ignored.
func (*AcceptRateLimiter) Observe ¶ added in v1.21.0
func (rl *AcceptRateLimiter) Observe(context.Context, error, *RateLimitKey)
Observe does nothing.
type Addresses ¶
type Addresses interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Address, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.Address, error) Insert(ctx context.Context, key *meta.Key, obj *computega.Address, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computega.Address, error) }
Addresses is an interface that allows for mocking of Addresses.
type AlphaAddresses ¶
type AlphaAddresses interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Address, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.Address, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Address, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computealpha.Address, error) }
AlphaAddresses is an interface that allows for mocking of Addresses.
type AlphaBackendServices ¶
type AlphaBackendServices interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.BackendService, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.BackendService, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.BackendService, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computealpha.BackendService, error) AddSignedUrlKey(context.Context, *meta.Key, *computealpha.SignedUrlKey, ...Option) error DeleteSignedUrlKey(context.Context, *meta.Key, string, ...Option) error Patch(context.Context, *meta.Key, *computealpha.BackendService, ...Option) error SetSecurityPolicy(context.Context, *meta.Key, *computealpha.SecurityPolicyReference, ...Option) error Update(context.Context, *meta.Key, *computealpha.BackendService, ...Option) error }
AlphaBackendServices is an interface that allows for mocking of BackendServices.
type AlphaFirewalls ¶
type AlphaFirewalls interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Firewall, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.Firewall, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Firewall, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Patch(context.Context, *meta.Key, *computealpha.Firewall, ...Option) error Update(context.Context, *meta.Key, *computealpha.Firewall, ...Option) error }
AlphaFirewalls is an interface that allows for mocking of Firewalls.
type AlphaForwardingRules ¶
type AlphaForwardingRules interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.ForwardingRule, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.ForwardingRule, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.ForwardingRule, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error SetLabels(context.Context, *meta.Key, *computealpha.RegionSetLabelsRequest, ...Option) error SetTarget(context.Context, *meta.Key, *computealpha.TargetReference, ...Option) error }
AlphaForwardingRules is an interface that allows for mocking of ForwardingRules.
type AlphaGlobalAddresses ¶
type AlphaGlobalAddresses interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Address, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.Address, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Address, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error }
AlphaGlobalAddresses is an interface that allows for mocking of GlobalAddresses.
type AlphaGlobalForwardingRules ¶
type AlphaGlobalForwardingRules interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.ForwardingRule, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.ForwardingRule, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.ForwardingRule, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error SetLabels(context.Context, *meta.Key, *computealpha.GlobalSetLabelsRequest, ...Option) error SetTarget(context.Context, *meta.Key, *computealpha.TargetReference, ...Option) error }
AlphaGlobalForwardingRules is an interface that allows for mocking of GlobalForwardingRules.
type AlphaGlobalNetworkEndpointGroups ¶ added in v1.25.0
type AlphaGlobalNetworkEndpointGroups interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.NetworkEndpointGroup, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointGroup, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.NetworkEndpointGroup, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AttachNetworkEndpoints(context.Context, *meta.Key, *computealpha.GlobalNetworkEndpointGroupsAttachEndpointsRequest, ...Option) error DetachNetworkEndpoints(context.Context, *meta.Key, *computealpha.GlobalNetworkEndpointGroupsDetachEndpointsRequest, ...Option) error ListNetworkEndpoints(context.Context, *meta.Key, *filter.F, ...Option) ([]*computealpha.NetworkEndpointWithHealthStatus, error) }
AlphaGlobalNetworkEndpointGroups is an interface that allows for mocking of GlobalNetworkEndpointGroups.
type AlphaHealthChecks ¶
type AlphaHealthChecks interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.HealthCheck, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.HealthCheck, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.HealthCheck, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Update(context.Context, *meta.Key, *computealpha.HealthCheck, ...Option) error }
AlphaHealthChecks is an interface that allows for mocking of HealthChecks.
type AlphaImages ¶ added in v1.17.0
type AlphaImages interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Image, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.Image, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Image, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error GetFromFamily(context.Context, *meta.Key, ...Option) (*computealpha.Image, error) GetIamPolicy(context.Context, *meta.Key, ...Option) (*computealpha.Policy, error) Patch(context.Context, *meta.Key, *computealpha.Image, ...Option) error SetIamPolicy(context.Context, *meta.Key, *computealpha.GlobalSetPolicyRequest, ...Option) (*computealpha.Policy, error) SetLabels(context.Context, *meta.Key, *computealpha.GlobalSetLabelsRequest, ...Option) error TestIamPermissions(context.Context, *meta.Key, *computealpha.TestPermissionsRequest, ...Option) (*computealpha.TestPermissionsResponse, error) }
AlphaImages is an interface that allows for mocking of Images.
type AlphaInstances ¶
type AlphaInstances interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Instance, error) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computealpha.Instance, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Instance, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AttachDisk(context.Context, *meta.Key, *computealpha.AttachedDisk, ...Option) error DetachDisk(context.Context, *meta.Key, string, ...Option) error UpdateNetworkInterface(context.Context, *meta.Key, string, *computealpha.NetworkInterface, ...Option) error }
AlphaInstances is an interface that allows for mocking of Instances.
type AlphaNetworkEndpointGroups ¶
type AlphaNetworkEndpointGroups interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.NetworkEndpointGroup, error) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointGroup, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.NetworkEndpointGroup, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computealpha.NetworkEndpointGroup, error) AttachNetworkEndpoints(context.Context, *meta.Key, *computealpha.NetworkEndpointGroupsAttachEndpointsRequest, ...Option) error DetachNetworkEndpoints(context.Context, *meta.Key, *computealpha.NetworkEndpointGroupsDetachEndpointsRequest, ...Option) error ListNetworkEndpoints(context.Context, *meta.Key, *computealpha.NetworkEndpointGroupsListEndpointsRequest, *filter.F, ...Option) ([]*computealpha.NetworkEndpointWithHealthStatus, error) }
AlphaNetworkEndpointGroups is an interface that allows for mocking of NetworkEndpointGroups.
type AlphaNetworkFirewallPolicies ¶ added in v1.17.0
type AlphaNetworkFirewallPolicies interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicy, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.FirewallPolicy, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.FirewallPolicy, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AddAssociation(context.Context, *meta.Key, *computealpha.FirewallPolicyAssociation, ...Option) error AddRule(context.Context, *meta.Key, *computealpha.FirewallPolicyRule, ...Option) error CloneRules(context.Context, *meta.Key, ...Option) error GetAssociation(context.Context, *meta.Key, ...Option) (*computealpha.FirewallPolicyAssociation, error) GetIamPolicy(context.Context, *meta.Key, ...Option) (*computealpha.Policy, error) GetRule(context.Context, *meta.Key, ...Option) (*computealpha.FirewallPolicyRule, error) Patch(context.Context, *meta.Key, *computealpha.FirewallPolicy, ...Option) error PatchRule(context.Context, *meta.Key, *computealpha.FirewallPolicyRule, ...Option) error RemoveAssociation(context.Context, *meta.Key, ...Option) error RemoveRule(context.Context, *meta.Key, ...Option) error SetIamPolicy(context.Context, *meta.Key, *computealpha.GlobalSetPolicyRequest, ...Option) (*computealpha.Policy, error) TestIamPermissions(context.Context, *meta.Key, *computealpha.TestPermissionsRequest, ...Option) (*computealpha.TestPermissionsResponse, error) }
AlphaNetworkFirewallPolicies is an interface that allows for mocking of NetworkFirewallPolicies.
type AlphaNetworks ¶
type AlphaNetworks interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Network, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.Network, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Network, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error }
AlphaNetworks is an interface that allows for mocking of Networks.
type AlphaRegionBackendServices ¶
type AlphaRegionBackendServices interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.BackendService, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.BackendService, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.BackendService, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error GetHealth(context.Context, *meta.Key, *computealpha.ResourceGroupReference, ...Option) (*computealpha.BackendServiceGroupHealth, error) Patch(context.Context, *meta.Key, *computealpha.BackendService, ...Option) error SetSecurityPolicy(context.Context, *meta.Key, *computealpha.SecurityPolicyReference, ...Option) error Update(context.Context, *meta.Key, *computealpha.BackendService, ...Option) error }
AlphaRegionBackendServices is an interface that allows for mocking of RegionBackendServices.
type AlphaRegionHealthChecks ¶
type AlphaRegionHealthChecks interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.HealthCheck, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.HealthCheck, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.HealthCheck, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Update(context.Context, *meta.Key, *computealpha.HealthCheck, ...Option) error }
AlphaRegionHealthChecks is an interface that allows for mocking of RegionHealthChecks.
type AlphaRegionNetworkEndpointGroups ¶ added in v1.29.0
type AlphaRegionNetworkEndpointGroups interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.NetworkEndpointGroup, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointGroup, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.NetworkEndpointGroup, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AttachNetworkEndpoints(context.Context, *meta.Key, *computealpha.RegionNetworkEndpointGroupsAttachEndpointsRequest, ...Option) error DetachNetworkEndpoints(context.Context, *meta.Key, *computealpha.RegionNetworkEndpointGroupsDetachEndpointsRequest, ...Option) error ListNetworkEndpoints(context.Context, *meta.Key, *filter.F, ...Option) ([]*computealpha.NetworkEndpointWithHealthStatus, error) }
AlphaRegionNetworkEndpointGroups is an interface that allows for mocking of RegionNetworkEndpointGroups.
type AlphaRegionNetworkFirewallPolicies ¶ added in v1.17.0
type AlphaRegionNetworkFirewallPolicies interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicy, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.FirewallPolicy, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.FirewallPolicy, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AddAssociation(context.Context, *meta.Key, *computealpha.FirewallPolicyAssociation, ...Option) error AddRule(context.Context, *meta.Key, *computealpha.FirewallPolicyRule, ...Option) error CloneRules(context.Context, *meta.Key, ...Option) error GetAssociation(context.Context, *meta.Key, ...Option) (*computealpha.FirewallPolicyAssociation, error) GetIamPolicy(context.Context, *meta.Key, ...Option) (*computealpha.Policy, error) GetRule(context.Context, *meta.Key, ...Option) (*computealpha.FirewallPolicyRule, error) Patch(context.Context, *meta.Key, *computealpha.FirewallPolicy, ...Option) error PatchRule(context.Context, *meta.Key, *computealpha.FirewallPolicyRule, ...Option) error RemoveAssociation(context.Context, *meta.Key, ...Option) error RemoveRule(context.Context, *meta.Key, ...Option) error SetIamPolicy(context.Context, *meta.Key, *computealpha.RegionSetPolicyRequest, ...Option) (*computealpha.Policy, error) TestIamPermissions(context.Context, *meta.Key, *computealpha.TestPermissionsRequest, ...Option) (*computealpha.TestPermissionsResponse, error) }
AlphaRegionNetworkFirewallPolicies is an interface that allows for mocking of RegionNetworkFirewallPolicies.
type AlphaRegionSslCertificates ¶
type AlphaRegionSslCertificates interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.SslCertificate, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.SslCertificate, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.SslCertificate, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error }
AlphaRegionSslCertificates is an interface that allows for mocking of RegionSslCertificates.
type AlphaRegionTargetHttpProxies ¶
type AlphaRegionTargetHttpProxies interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetHttpProxy, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.TargetHttpProxy, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpProxy, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error SetUrlMap(context.Context, *meta.Key, *computealpha.UrlMapReference, ...Option) error }
AlphaRegionTargetHttpProxies is an interface that allows for mocking of RegionTargetHttpProxies.
type AlphaRegionTargetHttpsProxies ¶
type AlphaRegionTargetHttpsProxies interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetHttpsProxy, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.TargetHttpsProxy, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpsProxy, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Patch(context.Context, *meta.Key, *computealpha.TargetHttpsProxy, ...Option) error SetSslCertificates(context.Context, *meta.Key, *computealpha.RegionTargetHttpsProxiesSetSslCertificatesRequest, ...Option) error SetUrlMap(context.Context, *meta.Key, *computealpha.UrlMapReference, ...Option) error }
AlphaRegionTargetHttpsProxies is an interface that allows for mocking of RegionTargetHttpsProxies.
type AlphaRegionUrlMaps ¶
type AlphaRegionUrlMaps interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.UrlMap, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.UrlMap, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.UrlMap, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Update(context.Context, *meta.Key, *computealpha.UrlMap, ...Option) error }
AlphaRegionUrlMaps is an interface that allows for mocking of RegionUrlMaps.
type AlphaRouters ¶ added in v1.17.0
type AlphaRouters interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Router, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.Router, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Router, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computealpha.Router, error) GetRouterStatus(context.Context, *meta.Key, ...Option) (*computealpha.RouterStatusResponse, error) Patch(context.Context, *meta.Key, *computealpha.Router, ...Option) error Preview(context.Context, *meta.Key, *computealpha.Router, ...Option) (*computealpha.RoutersPreviewResponse, error) TestIamPermissions(context.Context, *meta.Key, *computealpha.TestPermissionsRequest, ...Option) (*computealpha.TestPermissionsResponse, error) }
AlphaRouters is an interface that allows for mocking of Routers.
type AlphaServiceAttachments ¶
type AlphaServiceAttachments interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.ServiceAttachment, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.ServiceAttachment, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.ServiceAttachment, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Patch(context.Context, *meta.Key, *computealpha.ServiceAttachment, ...Option) error }
AlphaServiceAttachments is an interface that allows for mocking of ServiceAttachments.
type AlphaSslCertificates ¶
type AlphaSslCertificates interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.SslCertificate, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.SslCertificate, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.SslCertificate, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error }
AlphaSslCertificates is an interface that allows for mocking of SslCertificates.
type AlphaSubnetworks ¶
type AlphaSubnetworks interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Subnetwork, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.Subnetwork, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Subnetwork, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error ListUsable(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.UsableSubnetwork, error) Patch(context.Context, *meta.Key, *computealpha.Subnetwork, ...Option) error }
AlphaSubnetworks is an interface that allows for mocking of Subnetworks.
type AlphaTargetHttpProxies ¶
type AlphaTargetHttpProxies interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetHttpProxy, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.TargetHttpProxy, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpProxy, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error SetUrlMap(context.Context, *meta.Key, *computealpha.UrlMapReference, ...Option) error }
AlphaTargetHttpProxies is an interface that allows for mocking of TargetHttpProxies.
type AlphaTargetHttpsProxies ¶
type AlphaTargetHttpsProxies interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetHttpsProxy, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.TargetHttpsProxy, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpsProxy, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error SetCertificateMap(context.Context, *meta.Key, *computealpha.TargetHttpsProxiesSetCertificateMapRequest, ...Option) error SetSslCertificates(context.Context, *meta.Key, *computealpha.TargetHttpsProxiesSetSslCertificatesRequest, ...Option) error SetSslPolicy(context.Context, *meta.Key, *computealpha.SslPolicyReference, ...Option) error SetUrlMap(context.Context, *meta.Key, *computealpha.UrlMapReference, ...Option) error }
AlphaTargetHttpsProxies is an interface that allows for mocking of TargetHttpsProxies.
type AlphaTargetTcpProxies ¶
type AlphaTargetTcpProxies interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetTcpProxy, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.TargetTcpProxy, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetTcpProxy, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error SetBackendService(context.Context, *meta.Key, *computealpha.TargetTcpProxiesSetBackendServiceRequest, ...Option) error }
AlphaTargetTcpProxies is an interface that allows for mocking of TargetTcpProxies.
type AlphaUrlMaps ¶
type AlphaUrlMaps interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.UrlMap, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.UrlMap, error) Insert(ctx context.Context, key *meta.Key, obj *computealpha.UrlMap, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Update(context.Context, *meta.Key, *computealpha.UrlMap, ...Option) error }
AlphaUrlMaps is an interface that allows for mocking of UrlMaps.
type BackendServices ¶
type BackendServices interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.BackendService, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.BackendService, error) Insert(ctx context.Context, key *meta.Key, obj *computega.BackendService, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computega.BackendService, error) AddSignedUrlKey(context.Context, *meta.Key, *computega.SignedUrlKey, ...Option) error DeleteSignedUrlKey(context.Context, *meta.Key, string, ...Option) error GetHealth(context.Context, *meta.Key, *computega.ResourceGroupReference, ...Option) (*computega.BackendServiceGroupHealth, error) Patch(context.Context, *meta.Key, *computega.BackendService, ...Option) error SetSecurityPolicy(context.Context, *meta.Key, *computega.SecurityPolicyReference, ...Option) error Update(context.Context, *meta.Key, *computega.BackendService, ...Option) error }
BackendServices is an interface that allows for mocking of BackendServices.
type BetaAddresses ¶
type BetaAddresses interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Address, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.Address, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Address, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computebeta.Address, error) }
BetaAddresses is an interface that allows for mocking of Addresses.
type BetaBackendServices ¶
type BetaBackendServices interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.BackendService, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.BackendService, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.BackendService, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computebeta.BackendService, error) AddSignedUrlKey(context.Context, *meta.Key, *computebeta.SignedUrlKey, ...Option) error DeleteSignedUrlKey(context.Context, *meta.Key, string, ...Option) error Patch(context.Context, *meta.Key, *computebeta.BackendService, ...Option) error SetSecurityPolicy(context.Context, *meta.Key, *computebeta.SecurityPolicyReference, ...Option) error Update(context.Context, *meta.Key, *computebeta.BackendService, ...Option) error }
BetaBackendServices is an interface that allows for mocking of BackendServices.
type BetaFirewalls ¶
type BetaFirewalls interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Firewall, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.Firewall, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Firewall, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Patch(context.Context, *meta.Key, *computebeta.Firewall, ...Option) error Update(context.Context, *meta.Key, *computebeta.Firewall, ...Option) error }
BetaFirewalls is an interface that allows for mocking of Firewalls.
type BetaForwardingRules ¶
type BetaForwardingRules interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.ForwardingRule, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.ForwardingRule, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.ForwardingRule, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error SetLabels(context.Context, *meta.Key, *computebeta.RegionSetLabelsRequest, ...Option) error SetTarget(context.Context, *meta.Key, *computebeta.TargetReference, ...Option) error }
BetaForwardingRules is an interface that allows for mocking of ForwardingRules.
type BetaGlobalAddresses ¶
type BetaGlobalAddresses interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Address, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.Address, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Address, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error }
BetaGlobalAddresses is an interface that allows for mocking of GlobalAddresses.
type BetaGlobalForwardingRules ¶
type BetaGlobalForwardingRules interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.ForwardingRule, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.ForwardingRule, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.ForwardingRule, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error SetLabels(context.Context, *meta.Key, *computebeta.GlobalSetLabelsRequest, ...Option) error SetTarget(context.Context, *meta.Key, *computebeta.TargetReference, ...Option) error }
BetaGlobalForwardingRules is an interface that allows for mocking of GlobalForwardingRules.
type BetaGlobalNetworkEndpointGroups ¶ added in v1.25.0
type BetaGlobalNetworkEndpointGroups interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.NetworkEndpointGroup, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointGroup, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.NetworkEndpointGroup, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AttachNetworkEndpoints(context.Context, *meta.Key, *computebeta.GlobalNetworkEndpointGroupsAttachEndpointsRequest, ...Option) error DetachNetworkEndpoints(context.Context, *meta.Key, *computebeta.GlobalNetworkEndpointGroupsDetachEndpointsRequest, ...Option) error ListNetworkEndpoints(context.Context, *meta.Key, *filter.F, ...Option) ([]*computebeta.NetworkEndpointWithHealthStatus, error) }
BetaGlobalNetworkEndpointGroups is an interface that allows for mocking of GlobalNetworkEndpointGroups.
type BetaHealthChecks ¶
type BetaHealthChecks interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.HealthCheck, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.HealthCheck, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.HealthCheck, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Update(context.Context, *meta.Key, *computebeta.HealthCheck, ...Option) error }
BetaHealthChecks is an interface that allows for mocking of HealthChecks.
type BetaImages ¶ added in v1.17.0
type BetaImages interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Image, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.Image, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Image, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error GetFromFamily(context.Context, *meta.Key, ...Option) (*computebeta.Image, error) GetIamPolicy(context.Context, *meta.Key, ...Option) (*computebeta.Policy, error) Patch(context.Context, *meta.Key, *computebeta.Image, ...Option) error SetIamPolicy(context.Context, *meta.Key, *computebeta.GlobalSetPolicyRequest, ...Option) (*computebeta.Policy, error) SetLabels(context.Context, *meta.Key, *computebeta.GlobalSetLabelsRequest, ...Option) error TestIamPermissions(context.Context, *meta.Key, *computebeta.TestPermissionsRequest, ...Option) (*computebeta.TestPermissionsResponse, error) }
BetaImages is an interface that allows for mocking of Images.
type BetaInstances ¶
type BetaInstances interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Instance, error) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computebeta.Instance, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Instance, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AttachDisk(context.Context, *meta.Key, *computebeta.AttachedDisk, ...Option) error DetachDisk(context.Context, *meta.Key, string, ...Option) error UpdateNetworkInterface(context.Context, *meta.Key, string, *computebeta.NetworkInterface, ...Option) error }
BetaInstances is an interface that allows for mocking of Instances.
type BetaMeshes ¶ added in v1.25.0
type BetaMeshes interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*networkservicesbeta.Mesh, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*networkservicesbeta.Mesh, error) Insert(ctx context.Context, key *meta.Key, obj *networkservicesbeta.Mesh, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Patch(context.Context, *meta.Key, *networkservicesbeta.Mesh, ...Option) error }
BetaMeshes is an interface that allows for mocking of Meshes.
type BetaNetworkEndpointGroups ¶
type BetaNetworkEndpointGroups interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.NetworkEndpointGroup, error) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointGroup, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.NetworkEndpointGroup, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computebeta.NetworkEndpointGroup, error) AttachNetworkEndpoints(context.Context, *meta.Key, *computebeta.NetworkEndpointGroupsAttachEndpointsRequest, ...Option) error DetachNetworkEndpoints(context.Context, *meta.Key, *computebeta.NetworkEndpointGroupsDetachEndpointsRequest, ...Option) error ListNetworkEndpoints(context.Context, *meta.Key, *computebeta.NetworkEndpointGroupsListEndpointsRequest, *filter.F, ...Option) ([]*computebeta.NetworkEndpointWithHealthStatus, error) }
BetaNetworkEndpointGroups is an interface that allows for mocking of NetworkEndpointGroups.
type BetaNetworks ¶
type BetaNetworks interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Network, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.Network, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Network, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error }
BetaNetworks is an interface that allows for mocking of Networks.
type BetaRegionBackendServices ¶
type BetaRegionBackendServices interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.BackendService, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.BackendService, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.BackendService, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error GetHealth(context.Context, *meta.Key, *computebeta.ResourceGroupReference, ...Option) (*computebeta.BackendServiceGroupHealth, error) Patch(context.Context, *meta.Key, *computebeta.BackendService, ...Option) error SetSecurityPolicy(context.Context, *meta.Key, *computebeta.SecurityPolicyReference, ...Option) error Update(context.Context, *meta.Key, *computebeta.BackendService, ...Option) error }
BetaRegionBackendServices is an interface that allows for mocking of RegionBackendServices.
type BetaRegionHealthChecks ¶
type BetaRegionHealthChecks interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.HealthCheck, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.HealthCheck, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.HealthCheck, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Update(context.Context, *meta.Key, *computebeta.HealthCheck, ...Option) error }
BetaRegionHealthChecks is an interface that allows for mocking of RegionHealthChecks.
type BetaRegionNetworkEndpointGroups ¶ added in v1.29.0
type BetaRegionNetworkEndpointGroups interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.NetworkEndpointGroup, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointGroup, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.NetworkEndpointGroup, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AttachNetworkEndpoints(context.Context, *meta.Key, *computebeta.RegionNetworkEndpointGroupsAttachEndpointsRequest, ...Option) error DetachNetworkEndpoints(context.Context, *meta.Key, *computebeta.RegionNetworkEndpointGroupsDetachEndpointsRequest, ...Option) error ListNetworkEndpoints(context.Context, *meta.Key, *filter.F, ...Option) ([]*computebeta.NetworkEndpointWithHealthStatus, error) }
BetaRegionNetworkEndpointGroups is an interface that allows for mocking of RegionNetworkEndpointGroups.
type BetaRegionSslCertificates ¶
type BetaRegionSslCertificates interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.SslCertificate, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.SslCertificate, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.SslCertificate, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error }
BetaRegionSslCertificates is an interface that allows for mocking of RegionSslCertificates.
type BetaRegionTargetHttpProxies ¶
type BetaRegionTargetHttpProxies interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetHttpProxy, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.TargetHttpProxy, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpProxy, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error SetUrlMap(context.Context, *meta.Key, *computebeta.UrlMapReference, ...Option) error }
BetaRegionTargetHttpProxies is an interface that allows for mocking of RegionTargetHttpProxies.
type BetaRegionTargetHttpsProxies ¶
type BetaRegionTargetHttpsProxies interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetHttpsProxy, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.TargetHttpsProxy, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpsProxy, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Patch(context.Context, *meta.Key, *computebeta.TargetHttpsProxy, ...Option) error SetSslCertificates(context.Context, *meta.Key, *computebeta.RegionTargetHttpsProxiesSetSslCertificatesRequest, ...Option) error SetUrlMap(context.Context, *meta.Key, *computebeta.UrlMapReference, ...Option) error }
BetaRegionTargetHttpsProxies is an interface that allows for mocking of RegionTargetHttpsProxies.
type BetaRegionUrlMaps ¶
type BetaRegionUrlMaps interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.UrlMap, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.UrlMap, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.UrlMap, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Update(context.Context, *meta.Key, *computebeta.UrlMap, ...Option) error }
BetaRegionUrlMaps is an interface that allows for mocking of RegionUrlMaps.
type BetaRouters ¶ added in v1.17.0
type BetaRouters interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Router, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.Router, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Router, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computebeta.Router, error) GetRouterStatus(context.Context, *meta.Key, ...Option) (*computebeta.RouterStatusResponse, error) Patch(context.Context, *meta.Key, *computebeta.Router, ...Option) error Preview(context.Context, *meta.Key, *computebeta.Router, ...Option) (*computebeta.RoutersPreviewResponse, error) TestIamPermissions(context.Context, *meta.Key, *computebeta.TestPermissionsRequest, ...Option) (*computebeta.TestPermissionsResponse, error) }
BetaRouters is an interface that allows for mocking of Routers.
type BetaSecurityPolicies ¶
type BetaSecurityPolicies interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.SecurityPolicy, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.SecurityPolicy, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.SecurityPolicy, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AddRule(context.Context, *meta.Key, *computebeta.SecurityPolicyRule, ...Option) error GetRule(context.Context, *meta.Key, ...Option) (*computebeta.SecurityPolicyRule, error) Patch(context.Context, *meta.Key, *computebeta.SecurityPolicy, ...Option) error PatchRule(context.Context, *meta.Key, *computebeta.SecurityPolicyRule, ...Option) error RemoveRule(context.Context, *meta.Key, ...Option) error }
BetaSecurityPolicies is an interface that allows for mocking of SecurityPolicies.
type BetaServiceAttachments ¶ added in v1.15.0
type BetaServiceAttachments interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.ServiceAttachment, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.ServiceAttachment, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.ServiceAttachment, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Patch(context.Context, *meta.Key, *computebeta.ServiceAttachment, ...Option) error }
BetaServiceAttachments is an interface that allows for mocking of ServiceAttachments.
type BetaSslCertificates ¶
type BetaSslCertificates interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.SslCertificate, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.SslCertificate, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.SslCertificate, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error }
BetaSslCertificates is an interface that allows for mocking of SslCertificates.
type BetaSubnetworks ¶
type BetaSubnetworks interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Subnetwork, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.Subnetwork, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Subnetwork, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error ListUsable(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.UsableSubnetwork, error) Patch(context.Context, *meta.Key, *computebeta.Subnetwork, ...Option) error }
BetaSubnetworks is an interface that allows for mocking of Subnetworks.
type BetaTargetHttpProxies ¶
type BetaTargetHttpProxies interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetHttpProxy, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.TargetHttpProxy, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpProxy, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error SetUrlMap(context.Context, *meta.Key, *computebeta.UrlMapReference, ...Option) error }
BetaTargetHttpProxies is an interface that allows for mocking of TargetHttpProxies.
type BetaTargetHttpsProxies ¶
type BetaTargetHttpsProxies interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetHttpsProxy, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.TargetHttpsProxy, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpsProxy, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error SetCertificateMap(context.Context, *meta.Key, *computebeta.TargetHttpsProxiesSetCertificateMapRequest, ...Option) error SetSslCertificates(context.Context, *meta.Key, *computebeta.TargetHttpsProxiesSetSslCertificatesRequest, ...Option) error SetSslPolicy(context.Context, *meta.Key, *computebeta.SslPolicyReference, ...Option) error SetUrlMap(context.Context, *meta.Key, *computebeta.UrlMapReference, ...Option) error }
BetaTargetHttpsProxies is an interface that allows for mocking of TargetHttpsProxies.
type BetaTargetTcpProxies ¶
type BetaTargetTcpProxies interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetTcpProxy, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.TargetTcpProxy, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetTcpProxy, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error SetBackendService(context.Context, *meta.Key, *computebeta.TargetTcpProxiesSetBackendServiceRequest, ...Option) error }
BetaTargetTcpProxies is an interface that allows for mocking of TargetTcpProxies.
type BetaTcpRoutes ¶ added in v1.25.0
type BetaTcpRoutes interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*networkservicesbeta.TcpRoute, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*networkservicesbeta.TcpRoute, error) Insert(ctx context.Context, key *meta.Key, obj *networkservicesbeta.TcpRoute, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Patch(context.Context, *meta.Key, *networkservicesbeta.TcpRoute, ...Option) error }
BetaTcpRoutes is an interface that allows for mocking of TcpRoutes.
type BetaUrlMaps ¶
type BetaUrlMaps interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.UrlMap, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.UrlMap, error) Insert(ctx context.Context, key *meta.Key, obj *computebeta.UrlMap, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Update(context.Context, *meta.Key, *computebeta.UrlMap, ...Option) error }
BetaUrlMaps is an interface that allows for mocking of UrlMaps.
type CallContextKey ¶ added in v1.22.0
type CallContextKey struct { // ProjectID is the non-numeric ID of the project. ProjectID string // Operation is the specific method being invoked (e.g. "Get", "List"). Operation string // Version is the API version of the call. Version meta.Version // Service is the service being invoked (e.g. "Firewalls", "BackendServices") Service string }
CallContextKey is a key identifying the most commonly used parts of an operation.
type CallObserver ¶ added in v1.22.0
type CallObserver interface { // Start event for a call to the API. This happens before the // RateLimiter.Accept(). Start(ctx context.Context, key *RateLimitKey) // End event for a call to the API. This happens after the // operation is finished. End(ctx context.Context, key *RateLimitKey, err error) }
CallObserver is called between the start and end of the operation.
type Cloud ¶
type Cloud interface { Addresses() Addresses AlphaAddresses() AlphaAddresses BetaAddresses() BetaAddresses AlphaGlobalAddresses() AlphaGlobalAddresses BetaGlobalAddresses() BetaGlobalAddresses GlobalAddresses() GlobalAddresses BackendServices() BackendServices BetaBackendServices() BetaBackendServices AlphaBackendServices() AlphaBackendServices RegionBackendServices() RegionBackendServices AlphaRegionBackendServices() AlphaRegionBackendServices BetaRegionBackendServices() BetaRegionBackendServices Disks() Disks RegionDisks() RegionDisks AlphaFirewalls() AlphaFirewalls BetaFirewalls() BetaFirewalls Firewalls() Firewalls AlphaNetworkFirewallPolicies() AlphaNetworkFirewallPolicies AlphaRegionNetworkFirewallPolicies() AlphaRegionNetworkFirewallPolicies ForwardingRules() ForwardingRules AlphaForwardingRules() AlphaForwardingRules BetaForwardingRules() BetaForwardingRules AlphaGlobalForwardingRules() AlphaGlobalForwardingRules BetaGlobalForwardingRules() BetaGlobalForwardingRules GlobalForwardingRules() GlobalForwardingRules HealthChecks() HealthChecks AlphaHealthChecks() AlphaHealthChecks BetaHealthChecks() BetaHealthChecks AlphaRegionHealthChecks() AlphaRegionHealthChecks BetaRegionHealthChecks() BetaRegionHealthChecks RegionHealthChecks() RegionHealthChecks HttpHealthChecks() HttpHealthChecks HttpsHealthChecks() HttpsHealthChecks InstanceGroups() InstanceGroups Instances() Instances BetaInstances() BetaInstances AlphaInstances() AlphaInstances InstanceGroupManagers() InstanceGroupManagers InstanceTemplates() InstanceTemplates Images() Images BetaImages() BetaImages AlphaImages() AlphaImages AlphaNetworks() AlphaNetworks BetaNetworks() BetaNetworks Networks() Networks AlphaNetworkEndpointGroups() AlphaNetworkEndpointGroups BetaNetworkEndpointGroups() BetaNetworkEndpointGroups NetworkEndpointGroups() NetworkEndpointGroups AlphaGlobalNetworkEndpointGroups() AlphaGlobalNetworkEndpointGroups BetaGlobalNetworkEndpointGroups() BetaGlobalNetworkEndpointGroups GlobalNetworkEndpointGroups() GlobalNetworkEndpointGroups AlphaRegionNetworkEndpointGroups() AlphaRegionNetworkEndpointGroups BetaRegionNetworkEndpointGroups() BetaRegionNetworkEndpointGroups RegionNetworkEndpointGroups() RegionNetworkEndpointGroups Projects() Projects Regions() Regions AlphaRouters() AlphaRouters BetaRouters() BetaRouters Routers() Routers Routes() Routes BetaSecurityPolicies() BetaSecurityPolicies ServiceAttachments() ServiceAttachments BetaServiceAttachments() BetaServiceAttachments AlphaServiceAttachments() AlphaServiceAttachments SslCertificates() SslCertificates BetaSslCertificates() BetaSslCertificates AlphaSslCertificates() AlphaSslCertificates AlphaRegionSslCertificates() AlphaRegionSslCertificates BetaRegionSslCertificates() BetaRegionSslCertificates RegionSslCertificates() RegionSslCertificates SslPolicies() SslPolicies RegionSslPolicies() RegionSslPolicies AlphaSubnetworks() AlphaSubnetworks BetaSubnetworks() BetaSubnetworks Subnetworks() Subnetworks AlphaTargetHttpProxies() AlphaTargetHttpProxies BetaTargetHttpProxies() BetaTargetHttpProxies TargetHttpProxies() TargetHttpProxies AlphaRegionTargetHttpProxies() AlphaRegionTargetHttpProxies BetaRegionTargetHttpProxies() BetaRegionTargetHttpProxies RegionTargetHttpProxies() RegionTargetHttpProxies TargetHttpsProxies() TargetHttpsProxies AlphaTargetHttpsProxies() AlphaTargetHttpsProxies BetaTargetHttpsProxies() BetaTargetHttpsProxies AlphaRegionTargetHttpsProxies() AlphaRegionTargetHttpsProxies BetaRegionTargetHttpsProxies() BetaRegionTargetHttpsProxies RegionTargetHttpsProxies() RegionTargetHttpsProxies TargetPools() TargetPools AlphaTargetTcpProxies() AlphaTargetTcpProxies BetaTargetTcpProxies() BetaTargetTcpProxies TargetTcpProxies() TargetTcpProxies AlphaUrlMaps() AlphaUrlMaps BetaUrlMaps() BetaUrlMaps UrlMaps() UrlMaps AlphaRegionUrlMaps() AlphaRegionUrlMaps BetaRegionUrlMaps() BetaRegionUrlMaps RegionUrlMaps() RegionUrlMaps Zones() Zones TcpRoutes() TcpRoutes BetaTcpRoutes() BetaTcpRoutes Meshes() Meshes BetaMeshes() BetaMeshes }
Cloud is an interface for the GCE compute API.
type CompositeRateLimiter ¶ added in v1.28.0
type CompositeRateLimiter struct {
// contains filtered or unexported fields
}
CompositeRateLimiter combines rate limiters based on RateLimitKey.
func NewCompositeRateLimiter ¶ added in v1.28.0
func NewCompositeRateLimiter(defaultRL RateLimiter) *CompositeRateLimiter
NewCompositeRateLimiter creates a new CompositeRateLimiter that will use provided default rate limiter if no better match is found. It is intended to be used for a single project.
Example ¶
bsDefaultRL := /* backend service default rate limiter */ bsGetListRL := /* backend service rate limiter for get and list operations */ rl := NewCompositeRateLimiter(defaultRL) rl.Register("BackendServices", "", bsDefaultRL) rl.Register("BackendServices", "Get", bsGetListRL) rl.Register("BackendServices", "List", bsGetListRL)
This rate limiter is not nesting. Only one rate limiter is used for any particular combination of: resource, operation. For the case above, rate limiter registered at ("BackendServices", "") won't be applied to operation ("BackendServices", "Get"), because a more specific rate limiter was registered.
func (*CompositeRateLimiter) Accept ¶ added in v1.28.0
func (c *CompositeRateLimiter) Accept(ctx context.Context, rlk *RateLimitKey) error
Accept either calls underlying rate limiter matching rlk or a default rate limiter when none is found.
func (*CompositeRateLimiter) Observe ¶ added in v1.28.0
func (*CompositeRateLimiter) Observe(context.Context, error, *RateLimitKey)
Observe does nothing.
func (*CompositeRateLimiter) Register ¶ added in v1.28.0
func (c *CompositeRateLimiter) Register(service, operation string, rl RateLimiter)
Register adds provided rl to the composite rate limiter. Service, operation can be omitted by providing an empty string. In this case, the provided rate limiter will be used only when there is no other rate limiter matching a particular resource, or operation.
It replaces previous rate limiter provided for the same service, operation combination. Once a rate limiter is added, it can't be removed.
Same rate limiter can be used for multiple Register calls.
type Disks ¶
type Disks interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Disk, error) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.Disk, error) Insert(ctx context.Context, key *meta.Key, obj *computega.Disk, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Resize(context.Context, *meta.Key, *computega.DisksResizeRequest, ...Option) error }
Disks is an interface that allows for mocking of Disks.
type Firewalls ¶
type Firewalls interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Firewall, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Firewall, error) Insert(ctx context.Context, key *meta.Key, obj *computega.Firewall, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Patch(context.Context, *meta.Key, *computega.Firewall, ...Option) error Update(context.Context, *meta.Key, *computega.Firewall, ...Option) error }
Firewalls is an interface that allows for mocking of Firewalls.
type ForwardingRules ¶
type ForwardingRules interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.ForwardingRule, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.ForwardingRule, error) Insert(ctx context.Context, key *meta.Key, obj *computega.ForwardingRule, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error SetLabels(context.Context, *meta.Key, *computega.RegionSetLabelsRequest, ...Option) error SetTarget(context.Context, *meta.Key, *computega.TargetReference, ...Option) error }
ForwardingRules is an interface that allows for mocking of ForwardingRules.
type GCE ¶
type GCE struct {
// contains filtered or unexported fields
}
GCE is the golang adapter for the compute APIs.
func (*GCE) AlphaAddresses ¶
func (gce *GCE) AlphaAddresses() AlphaAddresses
AlphaAddresses returns the interface for the alpha Addresses.
func (*GCE) AlphaBackendServices ¶
func (gce *GCE) AlphaBackendServices() AlphaBackendServices
AlphaBackendServices returns the interface for the alpha BackendServices.
func (*GCE) AlphaFirewalls ¶
func (gce *GCE) AlphaFirewalls() AlphaFirewalls
AlphaFirewalls returns the interface for the alpha Firewalls.
func (*GCE) AlphaForwardingRules ¶
func (gce *GCE) AlphaForwardingRules() AlphaForwardingRules
AlphaForwardingRules returns the interface for the alpha ForwardingRules.
func (*GCE) AlphaGlobalAddresses ¶
func (gce *GCE) AlphaGlobalAddresses() AlphaGlobalAddresses
AlphaGlobalAddresses returns the interface for the alpha GlobalAddresses.
func (*GCE) AlphaGlobalForwardingRules ¶
func (gce *GCE) AlphaGlobalForwardingRules() AlphaGlobalForwardingRules
AlphaGlobalForwardingRules returns the interface for the alpha GlobalForwardingRules.
func (*GCE) AlphaGlobalNetworkEndpointGroups ¶ added in v1.25.0
func (gce *GCE) AlphaGlobalNetworkEndpointGroups() AlphaGlobalNetworkEndpointGroups
AlphaGlobalNetworkEndpointGroups returns the interface for the alpha GlobalNetworkEndpointGroups.
func (*GCE) AlphaHealthChecks ¶
func (gce *GCE) AlphaHealthChecks() AlphaHealthChecks
AlphaHealthChecks returns the interface for the alpha HealthChecks.
func (*GCE) AlphaImages ¶ added in v1.17.0
func (gce *GCE) AlphaImages() AlphaImages
AlphaImages returns the interface for the alpha Images.
func (*GCE) AlphaInstances ¶
func (gce *GCE) AlphaInstances() AlphaInstances
AlphaInstances returns the interface for the alpha Instances.
func (*GCE) AlphaNetworkEndpointGroups ¶
func (gce *GCE) AlphaNetworkEndpointGroups() AlphaNetworkEndpointGroups
AlphaNetworkEndpointGroups returns the interface for the alpha NetworkEndpointGroups.
func (*GCE) AlphaNetworkFirewallPolicies ¶ added in v1.17.0
func (gce *GCE) AlphaNetworkFirewallPolicies() AlphaNetworkFirewallPolicies
AlphaNetworkFirewallPolicies returns the interface for the alpha NetworkFirewallPolicies.
func (*GCE) AlphaNetworks ¶
func (gce *GCE) AlphaNetworks() AlphaNetworks
AlphaNetworks returns the interface for the alpha Networks.
func (*GCE) AlphaRegionBackendServices ¶
func (gce *GCE) AlphaRegionBackendServices() AlphaRegionBackendServices
AlphaRegionBackendServices returns the interface for the alpha RegionBackendServices.
func (*GCE) AlphaRegionHealthChecks ¶
func (gce *GCE) AlphaRegionHealthChecks() AlphaRegionHealthChecks
AlphaRegionHealthChecks returns the interface for the alpha RegionHealthChecks.
func (*GCE) AlphaRegionNetworkEndpointGroups ¶ added in v1.29.0
func (gce *GCE) AlphaRegionNetworkEndpointGroups() AlphaRegionNetworkEndpointGroups
AlphaRegionNetworkEndpointGroups returns the interface for the alpha RegionNetworkEndpointGroups.
func (*GCE) AlphaRegionNetworkFirewallPolicies ¶ added in v1.17.0
func (gce *GCE) AlphaRegionNetworkFirewallPolicies() AlphaRegionNetworkFirewallPolicies
AlphaRegionNetworkFirewallPolicies returns the interface for the alpha RegionNetworkFirewallPolicies.
func (*GCE) AlphaRegionSslCertificates ¶
func (gce *GCE) AlphaRegionSslCertificates() AlphaRegionSslCertificates
AlphaRegionSslCertificates returns the interface for the alpha RegionSslCertificates.
func (*GCE) AlphaRegionTargetHttpProxies ¶
func (gce *GCE) AlphaRegionTargetHttpProxies() AlphaRegionTargetHttpProxies
AlphaRegionTargetHttpProxies returns the interface for the alpha RegionTargetHttpProxies.
func (*GCE) AlphaRegionTargetHttpsProxies ¶
func (gce *GCE) AlphaRegionTargetHttpsProxies() AlphaRegionTargetHttpsProxies
AlphaRegionTargetHttpsProxies returns the interface for the alpha RegionTargetHttpsProxies.
func (*GCE) AlphaRegionUrlMaps ¶
func (gce *GCE) AlphaRegionUrlMaps() AlphaRegionUrlMaps
AlphaRegionUrlMaps returns the interface for the alpha RegionUrlMaps.
func (*GCE) AlphaRouters ¶ added in v1.17.0
func (gce *GCE) AlphaRouters() AlphaRouters
AlphaRouters returns the interface for the alpha Routers.
func (*GCE) AlphaServiceAttachments ¶
func (gce *GCE) AlphaServiceAttachments() AlphaServiceAttachments
AlphaServiceAttachments returns the interface for the alpha ServiceAttachments.
func (*GCE) AlphaSslCertificates ¶
func (gce *GCE) AlphaSslCertificates() AlphaSslCertificates
AlphaSslCertificates returns the interface for the alpha SslCertificates.
func (*GCE) AlphaSubnetworks ¶
func (gce *GCE) AlphaSubnetworks() AlphaSubnetworks
AlphaSubnetworks returns the interface for the alpha Subnetworks.
func (*GCE) AlphaTargetHttpProxies ¶
func (gce *GCE) AlphaTargetHttpProxies() AlphaTargetHttpProxies
AlphaTargetHttpProxies returns the interface for the alpha TargetHttpProxies.
func (*GCE) AlphaTargetHttpsProxies ¶
func (gce *GCE) AlphaTargetHttpsProxies() AlphaTargetHttpsProxies
AlphaTargetHttpsProxies returns the interface for the alpha TargetHttpsProxies.
func (*GCE) AlphaTargetTcpProxies ¶
func (gce *GCE) AlphaTargetTcpProxies() AlphaTargetTcpProxies
AlphaTargetTcpProxies returns the interface for the alpha TargetTcpProxies.
func (*GCE) AlphaUrlMaps ¶
func (gce *GCE) AlphaUrlMaps() AlphaUrlMaps
AlphaUrlMaps returns the interface for the alpha UrlMaps.
func (*GCE) BackendServices ¶
func (gce *GCE) BackendServices() BackendServices
BackendServices returns the interface for the ga BackendServices.
func (*GCE) BetaAddresses ¶
func (gce *GCE) BetaAddresses() BetaAddresses
BetaAddresses returns the interface for the beta Addresses.
func (*GCE) BetaBackendServices ¶
func (gce *GCE) BetaBackendServices() BetaBackendServices
BetaBackendServices returns the interface for the beta BackendServices.
func (*GCE) BetaFirewalls ¶
func (gce *GCE) BetaFirewalls() BetaFirewalls
BetaFirewalls returns the interface for the beta Firewalls.
func (*GCE) BetaForwardingRules ¶
func (gce *GCE) BetaForwardingRules() BetaForwardingRules
BetaForwardingRules returns the interface for the beta ForwardingRules.
func (*GCE) BetaGlobalAddresses ¶
func (gce *GCE) BetaGlobalAddresses() BetaGlobalAddresses
BetaGlobalAddresses returns the interface for the beta GlobalAddresses.
func (*GCE) BetaGlobalForwardingRules ¶
func (gce *GCE) BetaGlobalForwardingRules() BetaGlobalForwardingRules
BetaGlobalForwardingRules returns the interface for the beta GlobalForwardingRules.
func (*GCE) BetaGlobalNetworkEndpointGroups ¶ added in v1.25.0
func (gce *GCE) BetaGlobalNetworkEndpointGroups() BetaGlobalNetworkEndpointGroups
BetaGlobalNetworkEndpointGroups returns the interface for the beta GlobalNetworkEndpointGroups.
func (*GCE) BetaHealthChecks ¶
func (gce *GCE) BetaHealthChecks() BetaHealthChecks
BetaHealthChecks returns the interface for the beta HealthChecks.
func (*GCE) BetaImages ¶ added in v1.17.0
func (gce *GCE) BetaImages() BetaImages
BetaImages returns the interface for the beta Images.
func (*GCE) BetaInstances ¶
func (gce *GCE) BetaInstances() BetaInstances
BetaInstances returns the interface for the beta Instances.
func (*GCE) BetaMeshes ¶ added in v1.25.0
func (gce *GCE) BetaMeshes() BetaMeshes
BetaMeshes returns the interface for the beta Meshes.
func (*GCE) BetaNetworkEndpointGroups ¶
func (gce *GCE) BetaNetworkEndpointGroups() BetaNetworkEndpointGroups
BetaNetworkEndpointGroups returns the interface for the beta NetworkEndpointGroups.
func (*GCE) BetaNetworks ¶
func (gce *GCE) BetaNetworks() BetaNetworks
BetaNetworks returns the interface for the beta Networks.
func (*GCE) BetaRegionBackendServices ¶
func (gce *GCE) BetaRegionBackendServices() BetaRegionBackendServices
BetaRegionBackendServices returns the interface for the beta RegionBackendServices.
func (*GCE) BetaRegionHealthChecks ¶
func (gce *GCE) BetaRegionHealthChecks() BetaRegionHealthChecks
BetaRegionHealthChecks returns the interface for the beta RegionHealthChecks.
func (*GCE) BetaRegionNetworkEndpointGroups ¶ added in v1.29.0
func (gce *GCE) BetaRegionNetworkEndpointGroups() BetaRegionNetworkEndpointGroups
BetaRegionNetworkEndpointGroups returns the interface for the beta RegionNetworkEndpointGroups.
func (*GCE) BetaRegionSslCertificates ¶
func (gce *GCE) BetaRegionSslCertificates() BetaRegionSslCertificates
BetaRegionSslCertificates returns the interface for the beta RegionSslCertificates.
func (*GCE) BetaRegionTargetHttpProxies ¶
func (gce *GCE) BetaRegionTargetHttpProxies() BetaRegionTargetHttpProxies
BetaRegionTargetHttpProxies returns the interface for the beta RegionTargetHttpProxies.
func (*GCE) BetaRegionTargetHttpsProxies ¶
func (gce *GCE) BetaRegionTargetHttpsProxies() BetaRegionTargetHttpsProxies
BetaRegionTargetHttpsProxies returns the interface for the beta RegionTargetHttpsProxies.
func (*GCE) BetaRegionUrlMaps ¶
func (gce *GCE) BetaRegionUrlMaps() BetaRegionUrlMaps
BetaRegionUrlMaps returns the interface for the beta RegionUrlMaps.
func (*GCE) BetaRouters ¶ added in v1.17.0
func (gce *GCE) BetaRouters() BetaRouters
BetaRouters returns the interface for the beta Routers.
func (*GCE) BetaSecurityPolicies ¶
func (gce *GCE) BetaSecurityPolicies() BetaSecurityPolicies
BetaSecurityPolicies returns the interface for the beta SecurityPolicies.
func (*GCE) BetaServiceAttachments ¶ added in v1.15.0
func (gce *GCE) BetaServiceAttachments() BetaServiceAttachments
BetaServiceAttachments returns the interface for the beta ServiceAttachments.
func (*GCE) BetaSslCertificates ¶
func (gce *GCE) BetaSslCertificates() BetaSslCertificates
BetaSslCertificates returns the interface for the beta SslCertificates.
func (*GCE) BetaSubnetworks ¶
func (gce *GCE) BetaSubnetworks() BetaSubnetworks
BetaSubnetworks returns the interface for the beta Subnetworks.
func (*GCE) BetaTargetHttpProxies ¶
func (gce *GCE) BetaTargetHttpProxies() BetaTargetHttpProxies
BetaTargetHttpProxies returns the interface for the beta TargetHttpProxies.
func (*GCE) BetaTargetHttpsProxies ¶
func (gce *GCE) BetaTargetHttpsProxies() BetaTargetHttpsProxies
BetaTargetHttpsProxies returns the interface for the beta TargetHttpsProxies.
func (*GCE) BetaTargetTcpProxies ¶
func (gce *GCE) BetaTargetTcpProxies() BetaTargetTcpProxies
BetaTargetTcpProxies returns the interface for the beta TargetTcpProxies.
func (*GCE) BetaTcpRoutes ¶ added in v1.25.0
func (gce *GCE) BetaTcpRoutes() BetaTcpRoutes
BetaTcpRoutes returns the interface for the beta TcpRoutes.
func (*GCE) BetaUrlMaps ¶
func (gce *GCE) BetaUrlMaps() BetaUrlMaps
BetaUrlMaps returns the interface for the beta UrlMaps.
func (*GCE) ForwardingRules ¶
func (gce *GCE) ForwardingRules() ForwardingRules
ForwardingRules returns the interface for the ga ForwardingRules.
func (*GCE) GlobalAddresses ¶
func (gce *GCE) GlobalAddresses() GlobalAddresses
GlobalAddresses returns the interface for the ga GlobalAddresses.
func (*GCE) GlobalForwardingRules ¶
func (gce *GCE) GlobalForwardingRules() GlobalForwardingRules
GlobalForwardingRules returns the interface for the ga GlobalForwardingRules.
func (*GCE) GlobalNetworkEndpointGroups ¶ added in v1.25.0
func (gce *GCE) GlobalNetworkEndpointGroups() GlobalNetworkEndpointGroups
GlobalNetworkEndpointGroups returns the interface for the ga GlobalNetworkEndpointGroups.
func (*GCE) HealthChecks ¶
func (gce *GCE) HealthChecks() HealthChecks
HealthChecks returns the interface for the ga HealthChecks.
func (*GCE) HttpHealthChecks ¶
func (gce *GCE) HttpHealthChecks() HttpHealthChecks
HttpHealthChecks returns the interface for the ga HttpHealthChecks.
func (*GCE) HttpsHealthChecks ¶
func (gce *GCE) HttpsHealthChecks() HttpsHealthChecks
HttpsHealthChecks returns the interface for the ga HttpsHealthChecks.
func (*GCE) InstanceGroupManagers ¶ added in v1.23.0
func (gce *GCE) InstanceGroupManagers() InstanceGroupManagers
InstanceGroupManagers returns the interface for the ga InstanceGroupManagers.
func (*GCE) InstanceGroups ¶
func (gce *GCE) InstanceGroups() InstanceGroups
InstanceGroups returns the interface for the ga InstanceGroups.
func (*GCE) InstanceTemplates ¶ added in v1.23.0
func (gce *GCE) InstanceTemplates() InstanceTemplates
InstanceTemplates returns the interface for the ga InstanceTemplates.
func (*GCE) NetworkEndpointGroups ¶
func (gce *GCE) NetworkEndpointGroups() NetworkEndpointGroups
NetworkEndpointGroups returns the interface for the ga NetworkEndpointGroups.
func (*GCE) RegionBackendServices ¶
func (gce *GCE) RegionBackendServices() RegionBackendServices
RegionBackendServices returns the interface for the ga RegionBackendServices.
func (*GCE) RegionDisks ¶
func (gce *GCE) RegionDisks() RegionDisks
RegionDisks returns the interface for the ga RegionDisks.
func (*GCE) RegionHealthChecks ¶
func (gce *GCE) RegionHealthChecks() RegionHealthChecks
RegionHealthChecks returns the interface for the ga RegionHealthChecks.
func (*GCE) RegionNetworkEndpointGroups ¶ added in v1.29.0
func (gce *GCE) RegionNetworkEndpointGroups() RegionNetworkEndpointGroups
RegionNetworkEndpointGroups returns the interface for the ga RegionNetworkEndpointGroups.
func (*GCE) RegionSslCertificates ¶
func (gce *GCE) RegionSslCertificates() RegionSslCertificates
RegionSslCertificates returns the interface for the ga RegionSslCertificates.
func (*GCE) RegionSslPolicies ¶ added in v1.25.0
func (gce *GCE) RegionSslPolicies() RegionSslPolicies
RegionSslPolicies returns the interface for the ga RegionSslPolicies.
func (*GCE) RegionTargetHttpProxies ¶
func (gce *GCE) RegionTargetHttpProxies() RegionTargetHttpProxies
RegionTargetHttpProxies returns the interface for the ga RegionTargetHttpProxies.
func (*GCE) RegionTargetHttpsProxies ¶
func (gce *GCE) RegionTargetHttpsProxies() RegionTargetHttpsProxies
RegionTargetHttpsProxies returns the interface for the ga RegionTargetHttpsProxies.
func (*GCE) RegionUrlMaps ¶
func (gce *GCE) RegionUrlMaps() RegionUrlMaps
RegionUrlMaps returns the interface for the ga RegionUrlMaps.
func (*GCE) ServiceAttachments ¶ added in v1.18.0
func (gce *GCE) ServiceAttachments() ServiceAttachments
ServiceAttachments returns the interface for the ga ServiceAttachments.
func (*GCE) SslCertificates ¶
func (gce *GCE) SslCertificates() SslCertificates
SslCertificates returns the interface for the ga SslCertificates.
func (*GCE) SslPolicies ¶
func (gce *GCE) SslPolicies() SslPolicies
SslPolicies returns the interface for the ga SslPolicies.
func (*GCE) Subnetworks ¶
func (gce *GCE) Subnetworks() Subnetworks
Subnetworks returns the interface for the ga Subnetworks.
func (*GCE) TargetHttpProxies ¶
func (gce *GCE) TargetHttpProxies() TargetHttpProxies
TargetHttpProxies returns the interface for the ga TargetHttpProxies.
func (*GCE) TargetHttpsProxies ¶
func (gce *GCE) TargetHttpsProxies() TargetHttpsProxies
TargetHttpsProxies returns the interface for the ga TargetHttpsProxies.
func (*GCE) TargetPools ¶
func (gce *GCE) TargetPools() TargetPools
TargetPools returns the interface for the ga TargetPools.
func (*GCE) TargetTcpProxies ¶ added in v1.17.0
func (gce *GCE) TargetTcpProxies() TargetTcpProxies
TargetTcpProxies returns the interface for the ga TargetTcpProxies.
type GCEAddresses ¶
type GCEAddresses struct {
// contains filtered or unexported fields
}
GCEAddresses is a simplifying adapter for the GCE Addresses.
func (*GCEAddresses) AggregatedList ¶
func (g *GCEAddresses) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computega.Address, error)
AggregatedList lists all resources of the given type across all locations.
func (*GCEAddresses) Get ¶
func (g *GCEAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Address, error)
Get the Address named by key.
type GCEAlphaAddresses ¶
type GCEAlphaAddresses struct {
// contains filtered or unexported fields
}
GCEAlphaAddresses is a simplifying adapter for the GCE Addresses.
func (*GCEAlphaAddresses) AggregatedList ¶
func (g *GCEAlphaAddresses) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computealpha.Address, error)
AggregatedList lists all resources of the given type across all locations.
func (*GCEAlphaAddresses) Get ¶
func (g *GCEAlphaAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Address, error)
Get the Address named by key.
type GCEAlphaBackendServices ¶
type GCEAlphaBackendServices struct {
// contains filtered or unexported fields
}
GCEAlphaBackendServices is a simplifying adapter for the GCE BackendServices.
func (*GCEAlphaBackendServices) AddSignedUrlKey ¶ added in v1.18.0
func (g *GCEAlphaBackendServices) AddSignedUrlKey(ctx context.Context, key *meta.Key, arg0 *computealpha.SignedUrlKey, options ...Option) error
AddSignedUrlKey is a method on GCEAlphaBackendServices.
func (*GCEAlphaBackendServices) AggregatedList ¶ added in v1.16.0
func (g *GCEAlphaBackendServices) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computealpha.BackendService, error)
AggregatedList lists all resources of the given type across all locations.
func (*GCEAlphaBackendServices) Delete ¶
func (g *GCEAlphaBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the BackendService referenced by key.
func (*GCEAlphaBackendServices) DeleteSignedUrlKey ¶ added in v1.18.0
func (g *GCEAlphaBackendServices) DeleteSignedUrlKey(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
DeleteSignedUrlKey is a method on GCEAlphaBackendServices.
func (*GCEAlphaBackendServices) Get ¶
func (g *GCEAlphaBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.BackendService, error)
Get the BackendService named by key.
func (*GCEAlphaBackendServices) Insert ¶
func (g *GCEAlphaBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computealpha.BackendService, options ...Option) error
Insert BackendService with key of value obj.
func (*GCEAlphaBackendServices) List ¶
func (g *GCEAlphaBackendServices) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.BackendService, error)
List all BackendService objects.
func (*GCEAlphaBackendServices) Patch ¶ added in v1.22.0
func (g *GCEAlphaBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.BackendService, options ...Option) error
Patch is a method on GCEAlphaBackendServices.
func (*GCEAlphaBackendServices) SetSecurityPolicy ¶
func (g *GCEAlphaBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.SecurityPolicyReference, options ...Option) error
SetSecurityPolicy is a method on GCEAlphaBackendServices.
func (*GCEAlphaBackendServices) Update ¶
func (g *GCEAlphaBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.BackendService, options ...Option) error
Update is a method on GCEAlphaBackendServices.
type GCEAlphaFirewalls ¶
type GCEAlphaFirewalls struct {
// contains filtered or unexported fields
}
GCEAlphaFirewalls is a simplifying adapter for the GCE Firewalls.
func (*GCEAlphaFirewalls) Get ¶
func (g *GCEAlphaFirewalls) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Firewall, error)
Get the Firewall named by key.
func (*GCEAlphaFirewalls) Insert ¶
func (g *GCEAlphaFirewalls) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Firewall, options ...Option) error
Insert Firewall with key of value obj.
func (*GCEAlphaFirewalls) List ¶
func (g *GCEAlphaFirewalls) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.Firewall, error)
List all Firewall objects.
type GCEAlphaForwardingRules ¶
type GCEAlphaForwardingRules struct {
// contains filtered or unexported fields
}
GCEAlphaForwardingRules is a simplifying adapter for the GCE ForwardingRules.
func (*GCEAlphaForwardingRules) Delete ¶
func (g *GCEAlphaForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the ForwardingRule referenced by key.
func (*GCEAlphaForwardingRules) Get ¶
func (g *GCEAlphaForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.ForwardingRule, error)
Get the ForwardingRule named by key.
func (*GCEAlphaForwardingRules) Insert ¶
func (g *GCEAlphaForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computealpha.ForwardingRule, options ...Option) error
Insert ForwardingRule with key of value obj.
func (*GCEAlphaForwardingRules) List ¶
func (g *GCEAlphaForwardingRules) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.ForwardingRule, error)
List all ForwardingRule objects.
func (*GCEAlphaForwardingRules) SetLabels ¶ added in v1.19.0
func (g *GCEAlphaForwardingRules) SetLabels(ctx context.Context, key *meta.Key, arg0 *computealpha.RegionSetLabelsRequest, options ...Option) error
SetLabels is a method on GCEAlphaForwardingRules.
func (*GCEAlphaForwardingRules) SetTarget ¶
func (g *GCEAlphaForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *computealpha.TargetReference, options ...Option) error
SetTarget is a method on GCEAlphaForwardingRules.
type GCEAlphaGlobalAddresses ¶
type GCEAlphaGlobalAddresses struct {
// contains filtered or unexported fields
}
GCEAlphaGlobalAddresses is a simplifying adapter for the GCE GlobalAddresses.
func (*GCEAlphaGlobalAddresses) Delete ¶
func (g *GCEAlphaGlobalAddresses) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the Address referenced by key.
func (*GCEAlphaGlobalAddresses) Get ¶
func (g *GCEAlphaGlobalAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Address, error)
Get the Address named by key.
type GCEAlphaGlobalForwardingRules ¶
type GCEAlphaGlobalForwardingRules struct {
// contains filtered or unexported fields
}
GCEAlphaGlobalForwardingRules is a simplifying adapter for the GCE GlobalForwardingRules.
func (*GCEAlphaGlobalForwardingRules) Delete ¶
func (g *GCEAlphaGlobalForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the ForwardingRule referenced by key.
func (*GCEAlphaGlobalForwardingRules) Get ¶
func (g *GCEAlphaGlobalForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.ForwardingRule, error)
Get the ForwardingRule named by key.
func (*GCEAlphaGlobalForwardingRules) Insert ¶
func (g *GCEAlphaGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computealpha.ForwardingRule, options ...Option) error
Insert ForwardingRule with key of value obj.
func (*GCEAlphaGlobalForwardingRules) List ¶
func (g *GCEAlphaGlobalForwardingRules) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.ForwardingRule, error)
List all ForwardingRule objects.
func (*GCEAlphaGlobalForwardingRules) SetLabels ¶ added in v1.19.0
func (g *GCEAlphaGlobalForwardingRules) SetLabels(ctx context.Context, key *meta.Key, arg0 *computealpha.GlobalSetLabelsRequest, options ...Option) error
SetLabels is a method on GCEAlphaGlobalForwardingRules.
func (*GCEAlphaGlobalForwardingRules) SetTarget ¶
func (g *GCEAlphaGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *computealpha.TargetReference, options ...Option) error
SetTarget is a method on GCEAlphaGlobalForwardingRules.
type GCEAlphaGlobalNetworkEndpointGroups ¶ added in v1.25.0
type GCEAlphaGlobalNetworkEndpointGroups struct {
// contains filtered or unexported fields
}
GCEAlphaGlobalNetworkEndpointGroups is a simplifying adapter for the GCE GlobalNetworkEndpointGroups.
func (*GCEAlphaGlobalNetworkEndpointGroups) AttachNetworkEndpoints ¶ added in v1.25.0
func (g *GCEAlphaGlobalNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computealpha.GlobalNetworkEndpointGroupsAttachEndpointsRequest, options ...Option) error
AttachNetworkEndpoints is a method on GCEAlphaGlobalNetworkEndpointGroups.
func (*GCEAlphaGlobalNetworkEndpointGroups) Delete ¶ added in v1.25.0
func (g *GCEAlphaGlobalNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the NetworkEndpointGroup referenced by key.
func (*GCEAlphaGlobalNetworkEndpointGroups) DetachNetworkEndpoints ¶ added in v1.25.0
func (g *GCEAlphaGlobalNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computealpha.GlobalNetworkEndpointGroupsDetachEndpointsRequest, options ...Option) error
DetachNetworkEndpoints is a method on GCEAlphaGlobalNetworkEndpointGroups.
func (*GCEAlphaGlobalNetworkEndpointGroups) Get ¶ added in v1.25.0
func (g *GCEAlphaGlobalNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.NetworkEndpointGroup, error)
Get the NetworkEndpointGroup named by key.
func (*GCEAlphaGlobalNetworkEndpointGroups) Insert ¶ added in v1.25.0
func (g *GCEAlphaGlobalNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computealpha.NetworkEndpointGroup, options ...Option) error
Insert NetworkEndpointGroup with key of value obj.
func (*GCEAlphaGlobalNetworkEndpointGroups) List ¶ added in v1.25.0
func (g *GCEAlphaGlobalNetworkEndpointGroups) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointGroup, error)
List all NetworkEndpointGroup objects.
func (*GCEAlphaGlobalNetworkEndpointGroups) ListNetworkEndpoints ¶ added in v1.25.0
func (g *GCEAlphaGlobalNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a method on GCEAlphaGlobalNetworkEndpointGroups.
type GCEAlphaHealthChecks ¶
type GCEAlphaHealthChecks struct {
// contains filtered or unexported fields
}
GCEAlphaHealthChecks is a simplifying adapter for the GCE HealthChecks.
func (*GCEAlphaHealthChecks) Get ¶
func (g *GCEAlphaHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.HealthCheck, error)
Get the HealthCheck named by key.
func (*GCEAlphaHealthChecks) Insert ¶
func (g *GCEAlphaHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computealpha.HealthCheck, options ...Option) error
Insert HealthCheck with key of value obj.
func (*GCEAlphaHealthChecks) List ¶
func (g *GCEAlphaHealthChecks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.HealthCheck, error)
List all HealthCheck objects.
func (*GCEAlphaHealthChecks) Update ¶
func (g *GCEAlphaHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.HealthCheck, options ...Option) error
Update is a method on GCEAlphaHealthChecks.
type GCEAlphaImages ¶ added in v1.17.0
type GCEAlphaImages struct {
// contains filtered or unexported fields
}
GCEAlphaImages is a simplifying adapter for the GCE Images.
func (*GCEAlphaImages) Get ¶ added in v1.17.0
func (g *GCEAlphaImages) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Image, error)
Get the Image named by key.
func (*GCEAlphaImages) GetFromFamily ¶ added in v1.17.0
func (g *GCEAlphaImages) GetFromFamily(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Image, error)
GetFromFamily is a method on GCEAlphaImages.
func (*GCEAlphaImages) GetIamPolicy ¶ added in v1.17.0
func (g *GCEAlphaImages) GetIamPolicy(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Policy, error)
GetIamPolicy is a method on GCEAlphaImages.
func (*GCEAlphaImages) Insert ¶ added in v1.17.0
func (g *GCEAlphaImages) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Image, options ...Option) error
Insert Image with key of value obj.
func (*GCEAlphaImages) List ¶ added in v1.17.0
func (g *GCEAlphaImages) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.Image, error)
List all Image objects.
func (*GCEAlphaImages) Patch ¶ added in v1.17.0
func (g *GCEAlphaImages) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.Image, options ...Option) error
Patch is a method on GCEAlphaImages.
func (*GCEAlphaImages) SetIamPolicy ¶ added in v1.17.0
func (g *GCEAlphaImages) SetIamPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.GlobalSetPolicyRequest, options ...Option) (*computealpha.Policy, error)
SetIamPolicy is a method on GCEAlphaImages.
func (*GCEAlphaImages) SetLabels ¶ added in v1.17.0
func (g *GCEAlphaImages) SetLabels(ctx context.Context, key *meta.Key, arg0 *computealpha.GlobalSetLabelsRequest, options ...Option) error
SetLabels is a method on GCEAlphaImages.
func (*GCEAlphaImages) TestIamPermissions ¶ added in v1.17.0
func (g *GCEAlphaImages) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computealpha.TestPermissionsRequest, options ...Option) (*computealpha.TestPermissionsResponse, error)
TestIamPermissions is a method on GCEAlphaImages.
type GCEAlphaInstances ¶
type GCEAlphaInstances struct {
// contains filtered or unexported fields
}
GCEAlphaInstances is a simplifying adapter for the GCE Instances.
func (*GCEAlphaInstances) AttachDisk ¶
func (g *GCEAlphaInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *computealpha.AttachedDisk, options ...Option) error
AttachDisk is a method on GCEAlphaInstances.
func (*GCEAlphaInstances) DetachDisk ¶
func (g *GCEAlphaInstances) DetachDisk(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
DetachDisk is a method on GCEAlphaInstances.
func (*GCEAlphaInstances) Get ¶
func (g *GCEAlphaInstances) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Instance, error)
Get the Instance named by key.
func (*GCEAlphaInstances) Insert ¶
func (g *GCEAlphaInstances) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Instance, options ...Option) error
Insert Instance with key of value obj.
func (*GCEAlphaInstances) List ¶
func (g *GCEAlphaInstances) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computealpha.Instance, error)
List all Instance objects.
func (*GCEAlphaInstances) UpdateNetworkInterface ¶
func (g *GCEAlphaInstances) UpdateNetworkInterface(ctx context.Context, key *meta.Key, arg0 string, arg1 *computealpha.NetworkInterface, options ...Option) error
UpdateNetworkInterface is a method on GCEAlphaInstances.
type GCEAlphaNetworkEndpointGroups ¶
type GCEAlphaNetworkEndpointGroups struct {
// contains filtered or unexported fields
}
GCEAlphaNetworkEndpointGroups is a simplifying adapter for the GCE NetworkEndpointGroups.
func (*GCEAlphaNetworkEndpointGroups) AggregatedList ¶
func (g *GCEAlphaNetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computealpha.NetworkEndpointGroup, error)
AggregatedList lists all resources of the given type across all locations.
func (*GCEAlphaNetworkEndpointGroups) AttachNetworkEndpoints ¶
func (g *GCEAlphaNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computealpha.NetworkEndpointGroupsAttachEndpointsRequest, options ...Option) error
AttachNetworkEndpoints is a method on GCEAlphaNetworkEndpointGroups.
func (*GCEAlphaNetworkEndpointGroups) Delete ¶
func (g *GCEAlphaNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the NetworkEndpointGroup referenced by key.
func (*GCEAlphaNetworkEndpointGroups) DetachNetworkEndpoints ¶
func (g *GCEAlphaNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computealpha.NetworkEndpointGroupsDetachEndpointsRequest, options ...Option) error
DetachNetworkEndpoints is a method on GCEAlphaNetworkEndpointGroups.
func (*GCEAlphaNetworkEndpointGroups) Get ¶
func (g *GCEAlphaNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.NetworkEndpointGroup, error)
Get the NetworkEndpointGroup named by key.
func (*GCEAlphaNetworkEndpointGroups) Insert ¶
func (g *GCEAlphaNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computealpha.NetworkEndpointGroup, options ...Option) error
Insert NetworkEndpointGroup with key of value obj.
func (*GCEAlphaNetworkEndpointGroups) List ¶
func (g *GCEAlphaNetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointGroup, error)
List all NetworkEndpointGroup objects.
func (*GCEAlphaNetworkEndpointGroups) ListNetworkEndpoints ¶
func (g *GCEAlphaNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computealpha.NetworkEndpointGroupsListEndpointsRequest, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a method on GCEAlphaNetworkEndpointGroups.
type GCEAlphaNetworkFirewallPolicies ¶ added in v1.17.0
type GCEAlphaNetworkFirewallPolicies struct {
// contains filtered or unexported fields
}
GCEAlphaNetworkFirewallPolicies is a simplifying adapter for the GCE NetworkFirewallPolicies.
func (*GCEAlphaNetworkFirewallPolicies) AddAssociation ¶ added in v1.17.0
func (g *GCEAlphaNetworkFirewallPolicies) AddAssociation(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicyAssociation, options ...Option) error
AddAssociation is a method on GCEAlphaNetworkFirewallPolicies.
func (*GCEAlphaNetworkFirewallPolicies) AddRule ¶ added in v1.17.0
func (g *GCEAlphaNetworkFirewallPolicies) AddRule(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicyRule, options ...Option) error
AddRule is a method on GCEAlphaNetworkFirewallPolicies.
func (*GCEAlphaNetworkFirewallPolicies) CloneRules ¶ added in v1.17.0
func (g *GCEAlphaNetworkFirewallPolicies) CloneRules(ctx context.Context, key *meta.Key, options ...Option) error
CloneRules is a method on GCEAlphaNetworkFirewallPolicies.
func (*GCEAlphaNetworkFirewallPolicies) Delete ¶ added in v1.17.0
func (g *GCEAlphaNetworkFirewallPolicies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the FirewallPolicy referenced by key.
func (*GCEAlphaNetworkFirewallPolicies) Get ¶ added in v1.17.0
func (g *GCEAlphaNetworkFirewallPolicies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicy, error)
Get the FirewallPolicy named by key.
func (*GCEAlphaNetworkFirewallPolicies) GetAssociation ¶ added in v1.17.0
func (g *GCEAlphaNetworkFirewallPolicies) GetAssociation(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicyAssociation, error)
GetAssociation is a method on GCEAlphaNetworkFirewallPolicies.
func (*GCEAlphaNetworkFirewallPolicies) GetIamPolicy ¶ added in v1.17.0
func (g *GCEAlphaNetworkFirewallPolicies) GetIamPolicy(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Policy, error)
GetIamPolicy is a method on GCEAlphaNetworkFirewallPolicies.
func (*GCEAlphaNetworkFirewallPolicies) GetRule ¶ added in v1.17.0
func (g *GCEAlphaNetworkFirewallPolicies) GetRule(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicyRule, error)
GetRule is a method on GCEAlphaNetworkFirewallPolicies.
func (*GCEAlphaNetworkFirewallPolicies) Insert ¶ added in v1.17.0
func (g *GCEAlphaNetworkFirewallPolicies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.FirewallPolicy, options ...Option) error
Insert FirewallPolicy with key of value obj.
func (*GCEAlphaNetworkFirewallPolicies) List ¶ added in v1.17.0
func (g *GCEAlphaNetworkFirewallPolicies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.FirewallPolicy, error)
List all FirewallPolicy objects.
func (*GCEAlphaNetworkFirewallPolicies) Patch ¶ added in v1.17.0
func (g *GCEAlphaNetworkFirewallPolicies) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicy, options ...Option) error
Patch is a method on GCEAlphaNetworkFirewallPolicies.
func (*GCEAlphaNetworkFirewallPolicies) PatchRule ¶ added in v1.17.0
func (g *GCEAlphaNetworkFirewallPolicies) PatchRule(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicyRule, options ...Option) error
PatchRule is a method on GCEAlphaNetworkFirewallPolicies.
func (*GCEAlphaNetworkFirewallPolicies) RemoveAssociation ¶ added in v1.17.0
func (g *GCEAlphaNetworkFirewallPolicies) RemoveAssociation(ctx context.Context, key *meta.Key, options ...Option) error
RemoveAssociation is a method on GCEAlphaNetworkFirewallPolicies.
func (*GCEAlphaNetworkFirewallPolicies) RemoveRule ¶ added in v1.17.0
func (g *GCEAlphaNetworkFirewallPolicies) RemoveRule(ctx context.Context, key *meta.Key, options ...Option) error
RemoveRule is a method on GCEAlphaNetworkFirewallPolicies.
func (*GCEAlphaNetworkFirewallPolicies) SetIamPolicy ¶ added in v1.17.0
func (g *GCEAlphaNetworkFirewallPolicies) SetIamPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.GlobalSetPolicyRequest, options ...Option) (*computealpha.Policy, error)
SetIamPolicy is a method on GCEAlphaNetworkFirewallPolicies.
func (*GCEAlphaNetworkFirewallPolicies) TestIamPermissions ¶ added in v1.17.0
func (g *GCEAlphaNetworkFirewallPolicies) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computealpha.TestPermissionsRequest, options ...Option) (*computealpha.TestPermissionsResponse, error)
TestIamPermissions is a method on GCEAlphaNetworkFirewallPolicies.
type GCEAlphaNetworks ¶
type GCEAlphaNetworks struct {
// contains filtered or unexported fields
}
GCEAlphaNetworks is a simplifying adapter for the GCE Networks.
func (*GCEAlphaNetworks) Get ¶
func (g *GCEAlphaNetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Network, error)
Get the Network named by key.
type GCEAlphaRegionBackendServices ¶
type GCEAlphaRegionBackendServices struct {
// contains filtered or unexported fields
}
GCEAlphaRegionBackendServices is a simplifying adapter for the GCE RegionBackendServices.
func (*GCEAlphaRegionBackendServices) Delete ¶
func (g *GCEAlphaRegionBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the BackendService referenced by key.
func (*GCEAlphaRegionBackendServices) Get ¶
func (g *GCEAlphaRegionBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.BackendService, error)
Get the BackendService named by key.
func (*GCEAlphaRegionBackendServices) GetHealth ¶
func (g *GCEAlphaRegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *computealpha.ResourceGroupReference, options ...Option) (*computealpha.BackendServiceGroupHealth, error)
GetHealth is a method on GCEAlphaRegionBackendServices.
func (*GCEAlphaRegionBackendServices) Insert ¶
func (g *GCEAlphaRegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computealpha.BackendService, options ...Option) error
Insert BackendService with key of value obj.
func (*GCEAlphaRegionBackendServices) List ¶
func (g *GCEAlphaRegionBackendServices) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.BackendService, error)
List all BackendService objects.
func (*GCEAlphaRegionBackendServices) Patch ¶ added in v1.22.0
func (g *GCEAlphaRegionBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.BackendService, options ...Option) error
Patch is a method on GCEAlphaRegionBackendServices.
func (*GCEAlphaRegionBackendServices) SetSecurityPolicy ¶ added in v1.27.0
func (g *GCEAlphaRegionBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.SecurityPolicyReference, options ...Option) error
SetSecurityPolicy is a method on GCEAlphaRegionBackendServices.
func (*GCEAlphaRegionBackendServices) Update ¶
func (g *GCEAlphaRegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.BackendService, options ...Option) error
Update is a method on GCEAlphaRegionBackendServices.
type GCEAlphaRegionHealthChecks ¶
type GCEAlphaRegionHealthChecks struct {
// contains filtered or unexported fields
}
GCEAlphaRegionHealthChecks is a simplifying adapter for the GCE RegionHealthChecks.
func (*GCEAlphaRegionHealthChecks) Delete ¶
func (g *GCEAlphaRegionHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the HealthCheck referenced by key.
func (*GCEAlphaRegionHealthChecks) Get ¶
func (g *GCEAlphaRegionHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.HealthCheck, error)
Get the HealthCheck named by key.
func (*GCEAlphaRegionHealthChecks) Insert ¶
func (g *GCEAlphaRegionHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computealpha.HealthCheck, options ...Option) error
Insert HealthCheck with key of value obj.
func (*GCEAlphaRegionHealthChecks) List ¶
func (g *GCEAlphaRegionHealthChecks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.HealthCheck, error)
List all HealthCheck objects.
func (*GCEAlphaRegionHealthChecks) Update ¶
func (g *GCEAlphaRegionHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.HealthCheck, options ...Option) error
Update is a method on GCEAlphaRegionHealthChecks.
type GCEAlphaRegionNetworkEndpointGroups ¶ added in v1.29.0
type GCEAlphaRegionNetworkEndpointGroups struct {
// contains filtered or unexported fields
}
GCEAlphaRegionNetworkEndpointGroups is a simplifying adapter for the GCE RegionNetworkEndpointGroups.
func (*GCEAlphaRegionNetworkEndpointGroups) AttachNetworkEndpoints ¶ added in v1.29.0
func (g *GCEAlphaRegionNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computealpha.RegionNetworkEndpointGroupsAttachEndpointsRequest, options ...Option) error
AttachNetworkEndpoints is a method on GCEAlphaRegionNetworkEndpointGroups.
func (*GCEAlphaRegionNetworkEndpointGroups) Delete ¶ added in v1.29.0
func (g *GCEAlphaRegionNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the NetworkEndpointGroup referenced by key.
func (*GCEAlphaRegionNetworkEndpointGroups) DetachNetworkEndpoints ¶ added in v1.29.0
func (g *GCEAlphaRegionNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computealpha.RegionNetworkEndpointGroupsDetachEndpointsRequest, options ...Option) error
DetachNetworkEndpoints is a method on GCEAlphaRegionNetworkEndpointGroups.
func (*GCEAlphaRegionNetworkEndpointGroups) Get ¶ added in v1.29.0
func (g *GCEAlphaRegionNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.NetworkEndpointGroup, error)
Get the NetworkEndpointGroup named by key.
func (*GCEAlphaRegionNetworkEndpointGroups) Insert ¶ added in v1.29.0
func (g *GCEAlphaRegionNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computealpha.NetworkEndpointGroup, options ...Option) error
Insert NetworkEndpointGroup with key of value obj.
func (*GCEAlphaRegionNetworkEndpointGroups) List ¶ added in v1.29.0
func (g *GCEAlphaRegionNetworkEndpointGroups) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointGroup, error)
List all NetworkEndpointGroup objects.
func (*GCEAlphaRegionNetworkEndpointGroups) ListNetworkEndpoints ¶ added in v1.29.0
func (g *GCEAlphaRegionNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a method on GCEAlphaRegionNetworkEndpointGroups.
type GCEAlphaRegionNetworkFirewallPolicies ¶ added in v1.17.0
type GCEAlphaRegionNetworkFirewallPolicies struct {
// contains filtered or unexported fields
}
GCEAlphaRegionNetworkFirewallPolicies is a simplifying adapter for the GCE RegionNetworkFirewallPolicies.
func (*GCEAlphaRegionNetworkFirewallPolicies) AddAssociation ¶ added in v1.17.0
func (g *GCEAlphaRegionNetworkFirewallPolicies) AddAssociation(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicyAssociation, options ...Option) error
AddAssociation is a method on GCEAlphaRegionNetworkFirewallPolicies.
func (*GCEAlphaRegionNetworkFirewallPolicies) AddRule ¶ added in v1.17.0
func (g *GCEAlphaRegionNetworkFirewallPolicies) AddRule(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicyRule, options ...Option) error
AddRule is a method on GCEAlphaRegionNetworkFirewallPolicies.
func (*GCEAlphaRegionNetworkFirewallPolicies) CloneRules ¶ added in v1.17.0
func (g *GCEAlphaRegionNetworkFirewallPolicies) CloneRules(ctx context.Context, key *meta.Key, options ...Option) error
CloneRules is a method on GCEAlphaRegionNetworkFirewallPolicies.
func (*GCEAlphaRegionNetworkFirewallPolicies) Delete ¶ added in v1.17.0
func (g *GCEAlphaRegionNetworkFirewallPolicies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the FirewallPolicy referenced by key.
func (*GCEAlphaRegionNetworkFirewallPolicies) Get ¶ added in v1.17.0
func (g *GCEAlphaRegionNetworkFirewallPolicies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicy, error)
Get the FirewallPolicy named by key.
func (*GCEAlphaRegionNetworkFirewallPolicies) GetAssociation ¶ added in v1.17.0
func (g *GCEAlphaRegionNetworkFirewallPolicies) GetAssociation(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicyAssociation, error)
GetAssociation is a method on GCEAlphaRegionNetworkFirewallPolicies.
func (*GCEAlphaRegionNetworkFirewallPolicies) GetIamPolicy ¶ added in v1.17.0
func (g *GCEAlphaRegionNetworkFirewallPolicies) GetIamPolicy(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Policy, error)
GetIamPolicy is a method on GCEAlphaRegionNetworkFirewallPolicies.
func (*GCEAlphaRegionNetworkFirewallPolicies) GetRule ¶ added in v1.17.0
func (g *GCEAlphaRegionNetworkFirewallPolicies) GetRule(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicyRule, error)
GetRule is a method on GCEAlphaRegionNetworkFirewallPolicies.
func (*GCEAlphaRegionNetworkFirewallPolicies) Insert ¶ added in v1.17.0
func (g *GCEAlphaRegionNetworkFirewallPolicies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.FirewallPolicy, options ...Option) error
Insert FirewallPolicy with key of value obj.
func (*GCEAlphaRegionNetworkFirewallPolicies) List ¶ added in v1.17.0
func (g *GCEAlphaRegionNetworkFirewallPolicies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.FirewallPolicy, error)
List all FirewallPolicy objects.
func (*GCEAlphaRegionNetworkFirewallPolicies) Patch ¶ added in v1.17.0
func (g *GCEAlphaRegionNetworkFirewallPolicies) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicy, options ...Option) error
Patch is a method on GCEAlphaRegionNetworkFirewallPolicies.
func (*GCEAlphaRegionNetworkFirewallPolicies) PatchRule ¶ added in v1.17.0
func (g *GCEAlphaRegionNetworkFirewallPolicies) PatchRule(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicyRule, options ...Option) error
PatchRule is a method on GCEAlphaRegionNetworkFirewallPolicies.
func (*GCEAlphaRegionNetworkFirewallPolicies) RemoveAssociation ¶ added in v1.17.0
func (g *GCEAlphaRegionNetworkFirewallPolicies) RemoveAssociation(ctx context.Context, key *meta.Key, options ...Option) error
RemoveAssociation is a method on GCEAlphaRegionNetworkFirewallPolicies.
func (*GCEAlphaRegionNetworkFirewallPolicies) RemoveRule ¶ added in v1.17.0
func (g *GCEAlphaRegionNetworkFirewallPolicies) RemoveRule(ctx context.Context, key *meta.Key, options ...Option) error
RemoveRule is a method on GCEAlphaRegionNetworkFirewallPolicies.
func (*GCEAlphaRegionNetworkFirewallPolicies) SetIamPolicy ¶ added in v1.17.0
func (g *GCEAlphaRegionNetworkFirewallPolicies) SetIamPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.RegionSetPolicyRequest, options ...Option) (*computealpha.Policy, error)
SetIamPolicy is a method on GCEAlphaRegionNetworkFirewallPolicies.
func (*GCEAlphaRegionNetworkFirewallPolicies) TestIamPermissions ¶ added in v1.17.0
func (g *GCEAlphaRegionNetworkFirewallPolicies) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computealpha.TestPermissionsRequest, options ...Option) (*computealpha.TestPermissionsResponse, error)
TestIamPermissions is a method on GCEAlphaRegionNetworkFirewallPolicies.
type GCEAlphaRegionSslCertificates ¶
type GCEAlphaRegionSslCertificates struct {
// contains filtered or unexported fields
}
GCEAlphaRegionSslCertificates is a simplifying adapter for the GCE RegionSslCertificates.
func (*GCEAlphaRegionSslCertificates) Delete ¶
func (g *GCEAlphaRegionSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the SslCertificate referenced by key.
func (*GCEAlphaRegionSslCertificates) Get ¶
func (g *GCEAlphaRegionSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.SslCertificate, error)
Get the SslCertificate named by key.
func (*GCEAlphaRegionSslCertificates) Insert ¶
func (g *GCEAlphaRegionSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computealpha.SslCertificate, options ...Option) error
Insert SslCertificate with key of value obj.
func (*GCEAlphaRegionSslCertificates) List ¶
func (g *GCEAlphaRegionSslCertificates) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.SslCertificate, error)
List all SslCertificate objects.
type GCEAlphaRegionTargetHttpProxies ¶
type GCEAlphaRegionTargetHttpProxies struct {
// contains filtered or unexported fields
}
GCEAlphaRegionTargetHttpProxies is a simplifying adapter for the GCE RegionTargetHttpProxies.
func (*GCEAlphaRegionTargetHttpProxies) Delete ¶
func (g *GCEAlphaRegionTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the TargetHttpProxy referenced by key.
func (*GCEAlphaRegionTargetHttpProxies) Get ¶
func (g *GCEAlphaRegionTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetHttpProxy, error)
Get the TargetHttpProxy named by key.
func (*GCEAlphaRegionTargetHttpProxies) Insert ¶
func (g *GCEAlphaRegionTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpProxy, options ...Option) error
Insert TargetHttpProxy with key of value obj.
func (*GCEAlphaRegionTargetHttpProxies) List ¶
func (g *GCEAlphaRegionTargetHttpProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.TargetHttpProxy, error)
List all TargetHttpProxy objects.
func (*GCEAlphaRegionTargetHttpProxies) SetUrlMap ¶
func (g *GCEAlphaRegionTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computealpha.UrlMapReference, options ...Option) error
SetUrlMap is a method on GCEAlphaRegionTargetHttpProxies.
type GCEAlphaRegionTargetHttpsProxies ¶
type GCEAlphaRegionTargetHttpsProxies struct {
// contains filtered or unexported fields
}
GCEAlphaRegionTargetHttpsProxies is a simplifying adapter for the GCE RegionTargetHttpsProxies.
func (*GCEAlphaRegionTargetHttpsProxies) Delete ¶
func (g *GCEAlphaRegionTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the TargetHttpsProxy referenced by key.
func (*GCEAlphaRegionTargetHttpsProxies) Get ¶
func (g *GCEAlphaRegionTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetHttpsProxy, error)
Get the TargetHttpsProxy named by key.
func (*GCEAlphaRegionTargetHttpsProxies) Insert ¶
func (g *GCEAlphaRegionTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpsProxy, options ...Option) error
Insert TargetHttpsProxy with key of value obj.
func (*GCEAlphaRegionTargetHttpsProxies) List ¶
func (g *GCEAlphaRegionTargetHttpsProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.TargetHttpsProxy, error)
List all TargetHttpsProxy objects.
func (*GCEAlphaRegionTargetHttpsProxies) Patch ¶ added in v1.25.0
func (g *GCEAlphaRegionTargetHttpsProxies) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.TargetHttpsProxy, options ...Option) error
Patch is a method on GCEAlphaRegionTargetHttpsProxies.
func (*GCEAlphaRegionTargetHttpsProxies) SetSslCertificates ¶
func (g *GCEAlphaRegionTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *computealpha.RegionTargetHttpsProxiesSetSslCertificatesRequest, options ...Option) error
SetSslCertificates is a method on GCEAlphaRegionTargetHttpsProxies.
func (*GCEAlphaRegionTargetHttpsProxies) SetUrlMap ¶
func (g *GCEAlphaRegionTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computealpha.UrlMapReference, options ...Option) error
SetUrlMap is a method on GCEAlphaRegionTargetHttpsProxies.
type GCEAlphaRegionUrlMaps ¶
type GCEAlphaRegionUrlMaps struct {
// contains filtered or unexported fields
}
GCEAlphaRegionUrlMaps is a simplifying adapter for the GCE RegionUrlMaps.
func (*GCEAlphaRegionUrlMaps) Get ¶
func (g *GCEAlphaRegionUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.UrlMap, error)
Get the UrlMap named by key.
func (*GCEAlphaRegionUrlMaps) Insert ¶
func (g *GCEAlphaRegionUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computealpha.UrlMap, options ...Option) error
Insert UrlMap with key of value obj.
type GCEAlphaRouters ¶ added in v1.17.0
type GCEAlphaRouters struct {
// contains filtered or unexported fields
}
GCEAlphaRouters is a simplifying adapter for the GCE Routers.
func (*GCEAlphaRouters) AggregatedList ¶ added in v1.17.0
func (g *GCEAlphaRouters) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computealpha.Router, error)
AggregatedList lists all resources of the given type across all locations.
func (*GCEAlphaRouters) Get ¶ added in v1.17.0
func (g *GCEAlphaRouters) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Router, error)
Get the Router named by key.
func (*GCEAlphaRouters) GetRouterStatus ¶ added in v1.17.0
func (g *GCEAlphaRouters) GetRouterStatus(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.RouterStatusResponse, error)
GetRouterStatus is a method on GCEAlphaRouters.
func (*GCEAlphaRouters) Insert ¶ added in v1.17.0
func (g *GCEAlphaRouters) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Router, options ...Option) error
Insert Router with key of value obj.
func (*GCEAlphaRouters) List ¶ added in v1.17.0
func (g *GCEAlphaRouters) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.Router, error)
List all Router objects.
func (*GCEAlphaRouters) Patch ¶ added in v1.17.0
func (g *GCEAlphaRouters) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.Router, options ...Option) error
Patch is a method on GCEAlphaRouters.
func (*GCEAlphaRouters) Preview ¶ added in v1.17.0
func (g *GCEAlphaRouters) Preview(ctx context.Context, key *meta.Key, arg0 *computealpha.Router, options ...Option) (*computealpha.RoutersPreviewResponse, error)
Preview is a method on GCEAlphaRouters.
func (*GCEAlphaRouters) TestIamPermissions ¶ added in v1.17.0
func (g *GCEAlphaRouters) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computealpha.TestPermissionsRequest, options ...Option) (*computealpha.TestPermissionsResponse, error)
TestIamPermissions is a method on GCEAlphaRouters.
type GCEAlphaServiceAttachments ¶
type GCEAlphaServiceAttachments struct {
// contains filtered or unexported fields
}
GCEAlphaServiceAttachments is a simplifying adapter for the GCE ServiceAttachments.
func (*GCEAlphaServiceAttachments) Delete ¶
func (g *GCEAlphaServiceAttachments) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the ServiceAttachment referenced by key.
func (*GCEAlphaServiceAttachments) Get ¶
func (g *GCEAlphaServiceAttachments) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.ServiceAttachment, error)
Get the ServiceAttachment named by key.
func (*GCEAlphaServiceAttachments) Insert ¶
func (g *GCEAlphaServiceAttachments) Insert(ctx context.Context, key *meta.Key, obj *computealpha.ServiceAttachment, options ...Option) error
Insert ServiceAttachment with key of value obj.
func (*GCEAlphaServiceAttachments) List ¶
func (g *GCEAlphaServiceAttachments) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.ServiceAttachment, error)
List all ServiceAttachment objects.
func (*GCEAlphaServiceAttachments) Patch ¶ added in v1.15.0
func (g *GCEAlphaServiceAttachments) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.ServiceAttachment, options ...Option) error
Patch is a method on GCEAlphaServiceAttachments.
type GCEAlphaSslCertificates ¶
type GCEAlphaSslCertificates struct {
// contains filtered or unexported fields
}
GCEAlphaSslCertificates is a simplifying adapter for the GCE SslCertificates.
func (*GCEAlphaSslCertificates) Delete ¶
func (g *GCEAlphaSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the SslCertificate referenced by key.
func (*GCEAlphaSslCertificates) Get ¶
func (g *GCEAlphaSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.SslCertificate, error)
Get the SslCertificate named by key.
func (*GCEAlphaSslCertificates) Insert ¶
func (g *GCEAlphaSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computealpha.SslCertificate, options ...Option) error
Insert SslCertificate with key of value obj.
func (*GCEAlphaSslCertificates) List ¶
func (g *GCEAlphaSslCertificates) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.SslCertificate, error)
List all SslCertificate objects.
type GCEAlphaSubnetworks ¶
type GCEAlphaSubnetworks struct {
// contains filtered or unexported fields
}
GCEAlphaSubnetworks is a simplifying adapter for the GCE Subnetworks.
func (*GCEAlphaSubnetworks) Get ¶
func (g *GCEAlphaSubnetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Subnetwork, error)
Get the Subnetwork named by key.
func (*GCEAlphaSubnetworks) Insert ¶
func (g *GCEAlphaSubnetworks) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Subnetwork, options ...Option) error
Insert Subnetwork with key of value obj.
func (*GCEAlphaSubnetworks) List ¶
func (g *GCEAlphaSubnetworks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.Subnetwork, error)
List all Subnetwork objects.
func (*GCEAlphaSubnetworks) ListUsable ¶ added in v1.16.0
func (g *GCEAlphaSubnetworks) ListUsable(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.UsableSubnetwork, error)
List all Usable Subnetwork objects.
func (*GCEAlphaSubnetworks) Patch ¶ added in v1.17.0
func (g *GCEAlphaSubnetworks) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.Subnetwork, options ...Option) error
Patch is a method on GCEAlphaSubnetworks.
type GCEAlphaTargetHttpProxies ¶
type GCEAlphaTargetHttpProxies struct {
// contains filtered or unexported fields
}
GCEAlphaTargetHttpProxies is a simplifying adapter for the GCE TargetHttpProxies.
func (*GCEAlphaTargetHttpProxies) Delete ¶
func (g *GCEAlphaTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the TargetHttpProxy referenced by key.
func (*GCEAlphaTargetHttpProxies) Get ¶
func (g *GCEAlphaTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetHttpProxy, error)
Get the TargetHttpProxy named by key.
func (*GCEAlphaTargetHttpProxies) Insert ¶
func (g *GCEAlphaTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpProxy, options ...Option) error
Insert TargetHttpProxy with key of value obj.
func (*GCEAlphaTargetHttpProxies) List ¶
func (g *GCEAlphaTargetHttpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.TargetHttpProxy, error)
List all TargetHttpProxy objects.
func (*GCEAlphaTargetHttpProxies) SetUrlMap ¶
func (g *GCEAlphaTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computealpha.UrlMapReference, options ...Option) error
SetUrlMap is a method on GCEAlphaTargetHttpProxies.
type GCEAlphaTargetHttpsProxies ¶
type GCEAlphaTargetHttpsProxies struct {
// contains filtered or unexported fields
}
GCEAlphaTargetHttpsProxies is a simplifying adapter for the GCE TargetHttpsProxies.
func (*GCEAlphaTargetHttpsProxies) Delete ¶
func (g *GCEAlphaTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the TargetHttpsProxy referenced by key.
func (*GCEAlphaTargetHttpsProxies) Get ¶
func (g *GCEAlphaTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetHttpsProxy, error)
Get the TargetHttpsProxy named by key.
func (*GCEAlphaTargetHttpsProxies) Insert ¶
func (g *GCEAlphaTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpsProxy, options ...Option) error
Insert TargetHttpsProxy with key of value obj.
func (*GCEAlphaTargetHttpsProxies) List ¶
func (g *GCEAlphaTargetHttpsProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.TargetHttpsProxy, error)
List all TargetHttpsProxy objects.
func (*GCEAlphaTargetHttpsProxies) SetCertificateMap ¶ added in v1.17.0
func (g *GCEAlphaTargetHttpsProxies) SetCertificateMap(ctx context.Context, key *meta.Key, arg0 *computealpha.TargetHttpsProxiesSetCertificateMapRequest, options ...Option) error
SetCertificateMap is a method on GCEAlphaTargetHttpsProxies.
func (*GCEAlphaTargetHttpsProxies) SetSslCertificates ¶
func (g *GCEAlphaTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *computealpha.TargetHttpsProxiesSetSslCertificatesRequest, options ...Option) error
SetSslCertificates is a method on GCEAlphaTargetHttpsProxies.
func (*GCEAlphaTargetHttpsProxies) SetSslPolicy ¶
func (g *GCEAlphaTargetHttpsProxies) SetSslPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.SslPolicyReference, options ...Option) error
SetSslPolicy is a method on GCEAlphaTargetHttpsProxies.
func (*GCEAlphaTargetHttpsProxies) SetUrlMap ¶
func (g *GCEAlphaTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computealpha.UrlMapReference, options ...Option) error
SetUrlMap is a method on GCEAlphaTargetHttpsProxies.
type GCEAlphaTargetTcpProxies ¶
type GCEAlphaTargetTcpProxies struct {
// contains filtered or unexported fields
}
GCEAlphaTargetTcpProxies is a simplifying adapter for the GCE TargetTcpProxies.
func (*GCEAlphaTargetTcpProxies) Delete ¶
func (g *GCEAlphaTargetTcpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the TargetTcpProxy referenced by key.
func (*GCEAlphaTargetTcpProxies) Get ¶
func (g *GCEAlphaTargetTcpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetTcpProxy, error)
Get the TargetTcpProxy named by key.
func (*GCEAlphaTargetTcpProxies) Insert ¶
func (g *GCEAlphaTargetTcpProxies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetTcpProxy, options ...Option) error
Insert TargetTcpProxy with key of value obj.
func (*GCEAlphaTargetTcpProxies) List ¶
func (g *GCEAlphaTargetTcpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.TargetTcpProxy, error)
List all TargetTcpProxy objects.
func (*GCEAlphaTargetTcpProxies) SetBackendService ¶
func (g *GCEAlphaTargetTcpProxies) SetBackendService(ctx context.Context, key *meta.Key, arg0 *computealpha.TargetTcpProxiesSetBackendServiceRequest, options ...Option) error
SetBackendService is a method on GCEAlphaTargetTcpProxies.
type GCEAlphaUrlMaps ¶
type GCEAlphaUrlMaps struct {
// contains filtered or unexported fields
}
GCEAlphaUrlMaps is a simplifying adapter for the GCE UrlMaps.
func (*GCEAlphaUrlMaps) Get ¶
func (g *GCEAlphaUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.UrlMap, error)
Get the UrlMap named by key.
func (*GCEAlphaUrlMaps) Insert ¶
func (g *GCEAlphaUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computealpha.UrlMap, options ...Option) error
Insert UrlMap with key of value obj.
type GCEBackendServices ¶
type GCEBackendServices struct {
// contains filtered or unexported fields
}
GCEBackendServices is a simplifying adapter for the GCE BackendServices.
func (*GCEBackendServices) AddSignedUrlKey ¶ added in v1.18.0
func (g *GCEBackendServices) AddSignedUrlKey(ctx context.Context, key *meta.Key, arg0 *computega.SignedUrlKey, options ...Option) error
AddSignedUrlKey is a method on GCEBackendServices.
func (*GCEBackendServices) AggregatedList ¶ added in v1.16.0
func (g *GCEBackendServices) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computega.BackendService, error)
AggregatedList lists all resources of the given type across all locations.
func (*GCEBackendServices) DeleteSignedUrlKey ¶ added in v1.18.0
func (g *GCEBackendServices) DeleteSignedUrlKey(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
DeleteSignedUrlKey is a method on GCEBackendServices.
func (*GCEBackendServices) Get ¶
func (g *GCEBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.BackendService, error)
Get the BackendService named by key.
func (*GCEBackendServices) GetHealth ¶
func (g *GCEBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *computega.ResourceGroupReference, options ...Option) (*computega.BackendServiceGroupHealth, error)
GetHealth is a method on GCEBackendServices.
func (*GCEBackendServices) Insert ¶
func (g *GCEBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computega.BackendService, options ...Option) error
Insert BackendService with key of value obj.
func (*GCEBackendServices) List ¶
func (g *GCEBackendServices) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.BackendService, error)
List all BackendService objects.
func (*GCEBackendServices) Patch ¶
func (g *GCEBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computega.BackendService, options ...Option) error
Patch is a method on GCEBackendServices.
func (*GCEBackendServices) SetSecurityPolicy ¶
func (g *GCEBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computega.SecurityPolicyReference, options ...Option) error
SetSecurityPolicy is a method on GCEBackendServices.
type GCEBetaAddresses ¶
type GCEBetaAddresses struct {
// contains filtered or unexported fields
}
GCEBetaAddresses is a simplifying adapter for the GCE Addresses.
func (*GCEBetaAddresses) AggregatedList ¶
func (g *GCEBetaAddresses) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computebeta.Address, error)
AggregatedList lists all resources of the given type across all locations.
func (*GCEBetaAddresses) Get ¶
func (g *GCEBetaAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Address, error)
Get the Address named by key.
type GCEBetaBackendServices ¶
type GCEBetaBackendServices struct {
// contains filtered or unexported fields
}
GCEBetaBackendServices is a simplifying adapter for the GCE BackendServices.
func (*GCEBetaBackendServices) AddSignedUrlKey ¶ added in v1.18.0
func (g *GCEBetaBackendServices) AddSignedUrlKey(ctx context.Context, key *meta.Key, arg0 *computebeta.SignedUrlKey, options ...Option) error
AddSignedUrlKey is a method on GCEBetaBackendServices.
func (*GCEBetaBackendServices) AggregatedList ¶ added in v1.16.0
func (g *GCEBetaBackendServices) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computebeta.BackendService, error)
AggregatedList lists all resources of the given type across all locations.
func (*GCEBetaBackendServices) Delete ¶
func (g *GCEBetaBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the BackendService referenced by key.
func (*GCEBetaBackendServices) DeleteSignedUrlKey ¶ added in v1.18.0
func (g *GCEBetaBackendServices) DeleteSignedUrlKey(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
DeleteSignedUrlKey is a method on GCEBetaBackendServices.
func (*GCEBetaBackendServices) Get ¶
func (g *GCEBetaBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.BackendService, error)
Get the BackendService named by key.
func (*GCEBetaBackendServices) Insert ¶
func (g *GCEBetaBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computebeta.BackendService, options ...Option) error
Insert BackendService with key of value obj.
func (*GCEBetaBackendServices) List ¶
func (g *GCEBetaBackendServices) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.BackendService, error)
List all BackendService objects.
func (*GCEBetaBackendServices) Patch ¶ added in v1.22.0
func (g *GCEBetaBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.BackendService, options ...Option) error
Patch is a method on GCEBetaBackendServices.
func (*GCEBetaBackendServices) SetSecurityPolicy ¶
func (g *GCEBetaBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computebeta.SecurityPolicyReference, options ...Option) error
SetSecurityPolicy is a method on GCEBetaBackendServices.
func (*GCEBetaBackendServices) Update ¶
func (g *GCEBetaBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.BackendService, options ...Option) error
Update is a method on GCEBetaBackendServices.
type GCEBetaFirewalls ¶
type GCEBetaFirewalls struct {
// contains filtered or unexported fields
}
GCEBetaFirewalls is a simplifying adapter for the GCE Firewalls.
func (*GCEBetaFirewalls) Get ¶
func (g *GCEBetaFirewalls) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Firewall, error)
Get the Firewall named by key.
func (*GCEBetaFirewalls) Insert ¶
func (g *GCEBetaFirewalls) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Firewall, options ...Option) error
Insert Firewall with key of value obj.
func (*GCEBetaFirewalls) List ¶
func (g *GCEBetaFirewalls) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.Firewall, error)
List all Firewall objects.
type GCEBetaForwardingRules ¶
type GCEBetaForwardingRules struct {
// contains filtered or unexported fields
}
GCEBetaForwardingRules is a simplifying adapter for the GCE ForwardingRules.
func (*GCEBetaForwardingRules) Delete ¶
func (g *GCEBetaForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the ForwardingRule referenced by key.
func (*GCEBetaForwardingRules) Get ¶
func (g *GCEBetaForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.ForwardingRule, error)
Get the ForwardingRule named by key.
func (*GCEBetaForwardingRules) Insert ¶
func (g *GCEBetaForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computebeta.ForwardingRule, options ...Option) error
Insert ForwardingRule with key of value obj.
func (*GCEBetaForwardingRules) List ¶
func (g *GCEBetaForwardingRules) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.ForwardingRule, error)
List all ForwardingRule objects.
func (*GCEBetaForwardingRules) SetLabels ¶ added in v1.19.0
func (g *GCEBetaForwardingRules) SetLabels(ctx context.Context, key *meta.Key, arg0 *computebeta.RegionSetLabelsRequest, options ...Option) error
SetLabels is a method on GCEBetaForwardingRules.
func (*GCEBetaForwardingRules) SetTarget ¶
func (g *GCEBetaForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *computebeta.TargetReference, options ...Option) error
SetTarget is a method on GCEBetaForwardingRules.
type GCEBetaGlobalAddresses ¶
type GCEBetaGlobalAddresses struct {
// contains filtered or unexported fields
}
GCEBetaGlobalAddresses is a simplifying adapter for the GCE GlobalAddresses.
func (*GCEBetaGlobalAddresses) Delete ¶
func (g *GCEBetaGlobalAddresses) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the Address referenced by key.
func (*GCEBetaGlobalAddresses) Get ¶
func (g *GCEBetaGlobalAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Address, error)
Get the Address named by key.
type GCEBetaGlobalForwardingRules ¶
type GCEBetaGlobalForwardingRules struct {
// contains filtered or unexported fields
}
GCEBetaGlobalForwardingRules is a simplifying adapter for the GCE GlobalForwardingRules.
func (*GCEBetaGlobalForwardingRules) Delete ¶
func (g *GCEBetaGlobalForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the ForwardingRule referenced by key.
func (*GCEBetaGlobalForwardingRules) Get ¶
func (g *GCEBetaGlobalForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.ForwardingRule, error)
Get the ForwardingRule named by key.
func (*GCEBetaGlobalForwardingRules) Insert ¶
func (g *GCEBetaGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computebeta.ForwardingRule, options ...Option) error
Insert ForwardingRule with key of value obj.
func (*GCEBetaGlobalForwardingRules) List ¶
func (g *GCEBetaGlobalForwardingRules) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.ForwardingRule, error)
List all ForwardingRule objects.
func (*GCEBetaGlobalForwardingRules) SetLabels ¶ added in v1.19.0
func (g *GCEBetaGlobalForwardingRules) SetLabels(ctx context.Context, key *meta.Key, arg0 *computebeta.GlobalSetLabelsRequest, options ...Option) error
SetLabels is a method on GCEBetaGlobalForwardingRules.
func (*GCEBetaGlobalForwardingRules) SetTarget ¶
func (g *GCEBetaGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *computebeta.TargetReference, options ...Option) error
SetTarget is a method on GCEBetaGlobalForwardingRules.
type GCEBetaGlobalNetworkEndpointGroups ¶ added in v1.25.0
type GCEBetaGlobalNetworkEndpointGroups struct {
// contains filtered or unexported fields
}
GCEBetaGlobalNetworkEndpointGroups is a simplifying adapter for the GCE GlobalNetworkEndpointGroups.
func (*GCEBetaGlobalNetworkEndpointGroups) AttachNetworkEndpoints ¶ added in v1.25.0
func (g *GCEBetaGlobalNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computebeta.GlobalNetworkEndpointGroupsAttachEndpointsRequest, options ...Option) error
AttachNetworkEndpoints is a method on GCEBetaGlobalNetworkEndpointGroups.
func (*GCEBetaGlobalNetworkEndpointGroups) Delete ¶ added in v1.25.0
func (g *GCEBetaGlobalNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the NetworkEndpointGroup referenced by key.
func (*GCEBetaGlobalNetworkEndpointGroups) DetachNetworkEndpoints ¶ added in v1.25.0
func (g *GCEBetaGlobalNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computebeta.GlobalNetworkEndpointGroupsDetachEndpointsRequest, options ...Option) error
DetachNetworkEndpoints is a method on GCEBetaGlobalNetworkEndpointGroups.
func (*GCEBetaGlobalNetworkEndpointGroups) Get ¶ added in v1.25.0
func (g *GCEBetaGlobalNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.NetworkEndpointGroup, error)
Get the NetworkEndpointGroup named by key.
func (*GCEBetaGlobalNetworkEndpointGroups) Insert ¶ added in v1.25.0
func (g *GCEBetaGlobalNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computebeta.NetworkEndpointGroup, options ...Option) error
Insert NetworkEndpointGroup with key of value obj.
func (*GCEBetaGlobalNetworkEndpointGroups) List ¶ added in v1.25.0
func (g *GCEBetaGlobalNetworkEndpointGroups) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointGroup, error)
List all NetworkEndpointGroup objects.
func (*GCEBetaGlobalNetworkEndpointGroups) ListNetworkEndpoints ¶ added in v1.25.0
func (g *GCEBetaGlobalNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a method on GCEBetaGlobalNetworkEndpointGroups.
type GCEBetaHealthChecks ¶
type GCEBetaHealthChecks struct {
// contains filtered or unexported fields
}
GCEBetaHealthChecks is a simplifying adapter for the GCE HealthChecks.
func (*GCEBetaHealthChecks) Get ¶
func (g *GCEBetaHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.HealthCheck, error)
Get the HealthCheck named by key.
func (*GCEBetaHealthChecks) Insert ¶
func (g *GCEBetaHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computebeta.HealthCheck, options ...Option) error
Insert HealthCheck with key of value obj.
func (*GCEBetaHealthChecks) List ¶
func (g *GCEBetaHealthChecks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.HealthCheck, error)
List all HealthCheck objects.
func (*GCEBetaHealthChecks) Update ¶
func (g *GCEBetaHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.HealthCheck, options ...Option) error
Update is a method on GCEBetaHealthChecks.
type GCEBetaImages ¶ added in v1.17.0
type GCEBetaImages struct {
// contains filtered or unexported fields
}
GCEBetaImages is a simplifying adapter for the GCE Images.
func (*GCEBetaImages) Get ¶ added in v1.17.0
func (g *GCEBetaImages) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Image, error)
Get the Image named by key.
func (*GCEBetaImages) GetFromFamily ¶ added in v1.17.0
func (g *GCEBetaImages) GetFromFamily(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Image, error)
GetFromFamily is a method on GCEBetaImages.
func (*GCEBetaImages) GetIamPolicy ¶ added in v1.17.0
func (g *GCEBetaImages) GetIamPolicy(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Policy, error)
GetIamPolicy is a method on GCEBetaImages.
func (*GCEBetaImages) Insert ¶ added in v1.17.0
func (g *GCEBetaImages) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Image, options ...Option) error
Insert Image with key of value obj.
func (*GCEBetaImages) List ¶ added in v1.17.0
func (g *GCEBetaImages) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.Image, error)
List all Image objects.
func (*GCEBetaImages) Patch ¶ added in v1.17.0
func (g *GCEBetaImages) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.Image, options ...Option) error
Patch is a method on GCEBetaImages.
func (*GCEBetaImages) SetIamPolicy ¶ added in v1.17.0
func (g *GCEBetaImages) SetIamPolicy(ctx context.Context, key *meta.Key, arg0 *computebeta.GlobalSetPolicyRequest, options ...Option) (*computebeta.Policy, error)
SetIamPolicy is a method on GCEBetaImages.
func (*GCEBetaImages) SetLabels ¶ added in v1.17.0
func (g *GCEBetaImages) SetLabels(ctx context.Context, key *meta.Key, arg0 *computebeta.GlobalSetLabelsRequest, options ...Option) error
SetLabels is a method on GCEBetaImages.
func (*GCEBetaImages) TestIamPermissions ¶ added in v1.17.0
func (g *GCEBetaImages) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computebeta.TestPermissionsRequest, options ...Option) (*computebeta.TestPermissionsResponse, error)
TestIamPermissions is a method on GCEBetaImages.
type GCEBetaInstances ¶
type GCEBetaInstances struct {
// contains filtered or unexported fields
}
GCEBetaInstances is a simplifying adapter for the GCE Instances.
func (*GCEBetaInstances) AttachDisk ¶
func (g *GCEBetaInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *computebeta.AttachedDisk, options ...Option) error
AttachDisk is a method on GCEBetaInstances.
func (*GCEBetaInstances) DetachDisk ¶
func (g *GCEBetaInstances) DetachDisk(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
DetachDisk is a method on GCEBetaInstances.
func (*GCEBetaInstances) Get ¶
func (g *GCEBetaInstances) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Instance, error)
Get the Instance named by key.
func (*GCEBetaInstances) Insert ¶
func (g *GCEBetaInstances) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Instance, options ...Option) error
Insert Instance with key of value obj.
func (*GCEBetaInstances) List ¶
func (g *GCEBetaInstances) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computebeta.Instance, error)
List all Instance objects.
func (*GCEBetaInstances) UpdateNetworkInterface ¶
func (g *GCEBetaInstances) UpdateNetworkInterface(ctx context.Context, key *meta.Key, arg0 string, arg1 *computebeta.NetworkInterface, options ...Option) error
UpdateNetworkInterface is a method on GCEBetaInstances.
type GCEBetaNetworkEndpointGroups ¶
type GCEBetaNetworkEndpointGroups struct {
// contains filtered or unexported fields
}
GCEBetaNetworkEndpointGroups is a simplifying adapter for the GCE NetworkEndpointGroups.
func (*GCEBetaNetworkEndpointGroups) AggregatedList ¶
func (g *GCEBetaNetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computebeta.NetworkEndpointGroup, error)
AggregatedList lists all resources of the given type across all locations.
func (*GCEBetaNetworkEndpointGroups) AttachNetworkEndpoints ¶
func (g *GCEBetaNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computebeta.NetworkEndpointGroupsAttachEndpointsRequest, options ...Option) error
AttachNetworkEndpoints is a method on GCEBetaNetworkEndpointGroups.
func (*GCEBetaNetworkEndpointGroups) Delete ¶
func (g *GCEBetaNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the NetworkEndpointGroup referenced by key.
func (*GCEBetaNetworkEndpointGroups) DetachNetworkEndpoints ¶
func (g *GCEBetaNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computebeta.NetworkEndpointGroupsDetachEndpointsRequest, options ...Option) error
DetachNetworkEndpoints is a method on GCEBetaNetworkEndpointGroups.
func (*GCEBetaNetworkEndpointGroups) Get ¶
func (g *GCEBetaNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.NetworkEndpointGroup, error)
Get the NetworkEndpointGroup named by key.
func (*GCEBetaNetworkEndpointGroups) Insert ¶
func (g *GCEBetaNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computebeta.NetworkEndpointGroup, options ...Option) error
Insert NetworkEndpointGroup with key of value obj.
func (*GCEBetaNetworkEndpointGroups) List ¶
func (g *GCEBetaNetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointGroup, error)
List all NetworkEndpointGroup objects.
func (*GCEBetaNetworkEndpointGroups) ListNetworkEndpoints ¶
func (g *GCEBetaNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computebeta.NetworkEndpointGroupsListEndpointsRequest, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a method on GCEBetaNetworkEndpointGroups.
type GCEBetaNetworks ¶
type GCEBetaNetworks struct {
// contains filtered or unexported fields
}
GCEBetaNetworks is a simplifying adapter for the GCE Networks.
func (*GCEBetaNetworks) Get ¶
func (g *GCEBetaNetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Network, error)
Get the Network named by key.
type GCEBetaRegionBackendServices ¶
type GCEBetaRegionBackendServices struct {
// contains filtered or unexported fields
}
GCEBetaRegionBackendServices is a simplifying adapter for the GCE RegionBackendServices.
func (*GCEBetaRegionBackendServices) Delete ¶
func (g *GCEBetaRegionBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the BackendService referenced by key.
func (*GCEBetaRegionBackendServices) Get ¶
func (g *GCEBetaRegionBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.BackendService, error)
Get the BackendService named by key.
func (*GCEBetaRegionBackendServices) GetHealth ¶
func (g *GCEBetaRegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *computebeta.ResourceGroupReference, options ...Option) (*computebeta.BackendServiceGroupHealth, error)
GetHealth is a method on GCEBetaRegionBackendServices.
func (*GCEBetaRegionBackendServices) Insert ¶
func (g *GCEBetaRegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computebeta.BackendService, options ...Option) error
Insert BackendService with key of value obj.
func (*GCEBetaRegionBackendServices) List ¶
func (g *GCEBetaRegionBackendServices) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.BackendService, error)
List all BackendService objects.
func (*GCEBetaRegionBackendServices) Patch ¶ added in v1.22.0
func (g *GCEBetaRegionBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.BackendService, options ...Option) error
Patch is a method on GCEBetaRegionBackendServices.
func (*GCEBetaRegionBackendServices) SetSecurityPolicy ¶ added in v1.27.0
func (g *GCEBetaRegionBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computebeta.SecurityPolicyReference, options ...Option) error
SetSecurityPolicy is a method on GCEBetaRegionBackendServices.
func (*GCEBetaRegionBackendServices) Update ¶
func (g *GCEBetaRegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.BackendService, options ...Option) error
Update is a method on GCEBetaRegionBackendServices.
type GCEBetaRegionHealthChecks ¶
type GCEBetaRegionHealthChecks struct {
// contains filtered or unexported fields
}
GCEBetaRegionHealthChecks is a simplifying adapter for the GCE RegionHealthChecks.
func (*GCEBetaRegionHealthChecks) Delete ¶
func (g *GCEBetaRegionHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the HealthCheck referenced by key.
func (*GCEBetaRegionHealthChecks) Get ¶
func (g *GCEBetaRegionHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.HealthCheck, error)
Get the HealthCheck named by key.
func (*GCEBetaRegionHealthChecks) Insert ¶
func (g *GCEBetaRegionHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computebeta.HealthCheck, options ...Option) error
Insert HealthCheck with key of value obj.
func (*GCEBetaRegionHealthChecks) List ¶
func (g *GCEBetaRegionHealthChecks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.HealthCheck, error)
List all HealthCheck objects.
func (*GCEBetaRegionHealthChecks) Update ¶
func (g *GCEBetaRegionHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.HealthCheck, options ...Option) error
Update is a method on GCEBetaRegionHealthChecks.
type GCEBetaRegionNetworkEndpointGroups ¶ added in v1.29.0
type GCEBetaRegionNetworkEndpointGroups struct {
// contains filtered or unexported fields
}
GCEBetaRegionNetworkEndpointGroups is a simplifying adapter for the GCE RegionNetworkEndpointGroups.
func (*GCEBetaRegionNetworkEndpointGroups) AttachNetworkEndpoints ¶ added in v1.29.0
func (g *GCEBetaRegionNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computebeta.RegionNetworkEndpointGroupsAttachEndpointsRequest, options ...Option) error
AttachNetworkEndpoints is a method on GCEBetaRegionNetworkEndpointGroups.
func (*GCEBetaRegionNetworkEndpointGroups) Delete ¶ added in v1.29.0
func (g *GCEBetaRegionNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the NetworkEndpointGroup referenced by key.
func (*GCEBetaRegionNetworkEndpointGroups) DetachNetworkEndpoints ¶ added in v1.29.0
func (g *GCEBetaRegionNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computebeta.RegionNetworkEndpointGroupsDetachEndpointsRequest, options ...Option) error
DetachNetworkEndpoints is a method on GCEBetaRegionNetworkEndpointGroups.
func (*GCEBetaRegionNetworkEndpointGroups) Get ¶ added in v1.29.0
func (g *GCEBetaRegionNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.NetworkEndpointGroup, error)
Get the NetworkEndpointGroup named by key.
func (*GCEBetaRegionNetworkEndpointGroups) Insert ¶ added in v1.29.0
func (g *GCEBetaRegionNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computebeta.NetworkEndpointGroup, options ...Option) error
Insert NetworkEndpointGroup with key of value obj.
func (*GCEBetaRegionNetworkEndpointGroups) List ¶ added in v1.29.0
func (g *GCEBetaRegionNetworkEndpointGroups) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointGroup, error)
List all NetworkEndpointGroup objects.
func (*GCEBetaRegionNetworkEndpointGroups) ListNetworkEndpoints ¶ added in v1.29.0
func (g *GCEBetaRegionNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a method on GCEBetaRegionNetworkEndpointGroups.
type GCEBetaRegionSslCertificates ¶
type GCEBetaRegionSslCertificates struct {
// contains filtered or unexported fields
}
GCEBetaRegionSslCertificates is a simplifying adapter for the GCE RegionSslCertificates.
func (*GCEBetaRegionSslCertificates) Delete ¶
func (g *GCEBetaRegionSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the SslCertificate referenced by key.
func (*GCEBetaRegionSslCertificates) Get ¶
func (g *GCEBetaRegionSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.SslCertificate, error)
Get the SslCertificate named by key.
func (*GCEBetaRegionSslCertificates) Insert ¶
func (g *GCEBetaRegionSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computebeta.SslCertificate, options ...Option) error
Insert SslCertificate with key of value obj.
func (*GCEBetaRegionSslCertificates) List ¶
func (g *GCEBetaRegionSslCertificates) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.SslCertificate, error)
List all SslCertificate objects.
type GCEBetaRegionTargetHttpProxies ¶
type GCEBetaRegionTargetHttpProxies struct {
// contains filtered or unexported fields
}
GCEBetaRegionTargetHttpProxies is a simplifying adapter for the GCE RegionTargetHttpProxies.
func (*GCEBetaRegionTargetHttpProxies) Delete ¶
func (g *GCEBetaRegionTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the TargetHttpProxy referenced by key.
func (*GCEBetaRegionTargetHttpProxies) Get ¶
func (g *GCEBetaRegionTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetHttpProxy, error)
Get the TargetHttpProxy named by key.
func (*GCEBetaRegionTargetHttpProxies) Insert ¶
func (g *GCEBetaRegionTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpProxy, options ...Option) error
Insert TargetHttpProxy with key of value obj.
func (*GCEBetaRegionTargetHttpProxies) List ¶
func (g *GCEBetaRegionTargetHttpProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.TargetHttpProxy, error)
List all TargetHttpProxy objects.
func (*GCEBetaRegionTargetHttpProxies) SetUrlMap ¶
func (g *GCEBetaRegionTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computebeta.UrlMapReference, options ...Option) error
SetUrlMap is a method on GCEBetaRegionTargetHttpProxies.
type GCEBetaRegionTargetHttpsProxies ¶
type GCEBetaRegionTargetHttpsProxies struct {
// contains filtered or unexported fields
}
GCEBetaRegionTargetHttpsProxies is a simplifying adapter for the GCE RegionTargetHttpsProxies.
func (*GCEBetaRegionTargetHttpsProxies) Delete ¶
func (g *GCEBetaRegionTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the TargetHttpsProxy referenced by key.
func (*GCEBetaRegionTargetHttpsProxies) Get ¶
func (g *GCEBetaRegionTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetHttpsProxy, error)
Get the TargetHttpsProxy named by key.
func (*GCEBetaRegionTargetHttpsProxies) Insert ¶
func (g *GCEBetaRegionTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpsProxy, options ...Option) error
Insert TargetHttpsProxy with key of value obj.
func (*GCEBetaRegionTargetHttpsProxies) List ¶
func (g *GCEBetaRegionTargetHttpsProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.TargetHttpsProxy, error)
List all TargetHttpsProxy objects.
func (*GCEBetaRegionTargetHttpsProxies) Patch ¶ added in v1.25.0
func (g *GCEBetaRegionTargetHttpsProxies) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.TargetHttpsProxy, options ...Option) error
Patch is a method on GCEBetaRegionTargetHttpsProxies.
func (*GCEBetaRegionTargetHttpsProxies) SetSslCertificates ¶
func (g *GCEBetaRegionTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *computebeta.RegionTargetHttpsProxiesSetSslCertificatesRequest, options ...Option) error
SetSslCertificates is a method on GCEBetaRegionTargetHttpsProxies.
func (*GCEBetaRegionTargetHttpsProxies) SetUrlMap ¶
func (g *GCEBetaRegionTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computebeta.UrlMapReference, options ...Option) error
SetUrlMap is a method on GCEBetaRegionTargetHttpsProxies.
type GCEBetaRegionUrlMaps ¶
type GCEBetaRegionUrlMaps struct {
// contains filtered or unexported fields
}
GCEBetaRegionUrlMaps is a simplifying adapter for the GCE RegionUrlMaps.
func (*GCEBetaRegionUrlMaps) Get ¶
func (g *GCEBetaRegionUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.UrlMap, error)
Get the UrlMap named by key.
func (*GCEBetaRegionUrlMaps) Insert ¶
func (g *GCEBetaRegionUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computebeta.UrlMap, options ...Option) error
Insert UrlMap with key of value obj.
type GCEBetaRouters ¶ added in v1.17.0
type GCEBetaRouters struct {
// contains filtered or unexported fields
}
GCEBetaRouters is a simplifying adapter for the GCE Routers.
func (*GCEBetaRouters) AggregatedList ¶ added in v1.17.0
func (g *GCEBetaRouters) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computebeta.Router, error)
AggregatedList lists all resources of the given type across all locations.
func (*GCEBetaRouters) Get ¶ added in v1.17.0
func (g *GCEBetaRouters) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Router, error)
Get the Router named by key.
func (*GCEBetaRouters) GetRouterStatus ¶ added in v1.17.0
func (g *GCEBetaRouters) GetRouterStatus(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.RouterStatusResponse, error)
GetRouterStatus is a method on GCEBetaRouters.
func (*GCEBetaRouters) Insert ¶ added in v1.17.0
func (g *GCEBetaRouters) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Router, options ...Option) error
Insert Router with key of value obj.
func (*GCEBetaRouters) List ¶ added in v1.17.0
func (g *GCEBetaRouters) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.Router, error)
List all Router objects.
func (*GCEBetaRouters) Patch ¶ added in v1.17.0
func (g *GCEBetaRouters) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.Router, options ...Option) error
Patch is a method on GCEBetaRouters.
func (*GCEBetaRouters) Preview ¶ added in v1.17.0
func (g *GCEBetaRouters) Preview(ctx context.Context, key *meta.Key, arg0 *computebeta.Router, options ...Option) (*computebeta.RoutersPreviewResponse, error)
Preview is a method on GCEBetaRouters.
func (*GCEBetaRouters) TestIamPermissions ¶ added in v1.17.0
func (g *GCEBetaRouters) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computebeta.TestPermissionsRequest, options ...Option) (*computebeta.TestPermissionsResponse, error)
TestIamPermissions is a method on GCEBetaRouters.
type GCEBetaSecurityPolicies ¶
type GCEBetaSecurityPolicies struct {
// contains filtered or unexported fields
}
GCEBetaSecurityPolicies is a simplifying adapter for the GCE SecurityPolicies.
func (*GCEBetaSecurityPolicies) AddRule ¶
func (g *GCEBetaSecurityPolicies) AddRule(ctx context.Context, key *meta.Key, arg0 *computebeta.SecurityPolicyRule, options ...Option) error
AddRule is a method on GCEBetaSecurityPolicies.
func (*GCEBetaSecurityPolicies) Delete ¶
func (g *GCEBetaSecurityPolicies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the SecurityPolicy referenced by key.
func (*GCEBetaSecurityPolicies) Get ¶
func (g *GCEBetaSecurityPolicies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.SecurityPolicy, error)
Get the SecurityPolicy named by key.
func (*GCEBetaSecurityPolicies) GetRule ¶
func (g *GCEBetaSecurityPolicies) GetRule(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.SecurityPolicyRule, error)
GetRule is a method on GCEBetaSecurityPolicies.
func (*GCEBetaSecurityPolicies) Insert ¶
func (g *GCEBetaSecurityPolicies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.SecurityPolicy, options ...Option) error
Insert SecurityPolicy with key of value obj.
func (*GCEBetaSecurityPolicies) List ¶
func (g *GCEBetaSecurityPolicies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.SecurityPolicy, error)
List all SecurityPolicy objects.
func (*GCEBetaSecurityPolicies) Patch ¶
func (g *GCEBetaSecurityPolicies) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.SecurityPolicy, options ...Option) error
Patch is a method on GCEBetaSecurityPolicies.
func (*GCEBetaSecurityPolicies) PatchRule ¶
func (g *GCEBetaSecurityPolicies) PatchRule(ctx context.Context, key *meta.Key, arg0 *computebeta.SecurityPolicyRule, options ...Option) error
PatchRule is a method on GCEBetaSecurityPolicies.
func (*GCEBetaSecurityPolicies) RemoveRule ¶
func (g *GCEBetaSecurityPolicies) RemoveRule(ctx context.Context, key *meta.Key, options ...Option) error
RemoveRule is a method on GCEBetaSecurityPolicies.
type GCEBetaServiceAttachments ¶ added in v1.15.0
type GCEBetaServiceAttachments struct {
// contains filtered or unexported fields
}
GCEBetaServiceAttachments is a simplifying adapter for the GCE ServiceAttachments.
func (*GCEBetaServiceAttachments) Delete ¶ added in v1.15.0
func (g *GCEBetaServiceAttachments) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the ServiceAttachment referenced by key.
func (*GCEBetaServiceAttachments) Get ¶ added in v1.15.0
func (g *GCEBetaServiceAttachments) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.ServiceAttachment, error)
Get the ServiceAttachment named by key.
func (*GCEBetaServiceAttachments) Insert ¶ added in v1.15.0
func (g *GCEBetaServiceAttachments) Insert(ctx context.Context, key *meta.Key, obj *computebeta.ServiceAttachment, options ...Option) error
Insert ServiceAttachment with key of value obj.
func (*GCEBetaServiceAttachments) List ¶ added in v1.15.0
func (g *GCEBetaServiceAttachments) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.ServiceAttachment, error)
List all ServiceAttachment objects.
func (*GCEBetaServiceAttachments) Patch ¶ added in v1.15.0
func (g *GCEBetaServiceAttachments) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.ServiceAttachment, options ...Option) error
Patch is a method on GCEBetaServiceAttachments.
type GCEBetaSslCertificates ¶
type GCEBetaSslCertificates struct {
// contains filtered or unexported fields
}
GCEBetaSslCertificates is a simplifying adapter for the GCE SslCertificates.
func (*GCEBetaSslCertificates) Delete ¶
func (g *GCEBetaSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the SslCertificate referenced by key.
func (*GCEBetaSslCertificates) Get ¶
func (g *GCEBetaSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.SslCertificate, error)
Get the SslCertificate named by key.
func (*GCEBetaSslCertificates) Insert ¶
func (g *GCEBetaSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computebeta.SslCertificate, options ...Option) error
Insert SslCertificate with key of value obj.
func (*GCEBetaSslCertificates) List ¶
func (g *GCEBetaSslCertificates) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.SslCertificate, error)
List all SslCertificate objects.
type GCEBetaSubnetworks ¶
type GCEBetaSubnetworks struct {
// contains filtered or unexported fields
}
GCEBetaSubnetworks is a simplifying adapter for the GCE Subnetworks.
func (*GCEBetaSubnetworks) Get ¶
func (g *GCEBetaSubnetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Subnetwork, error)
Get the Subnetwork named by key.
func (*GCEBetaSubnetworks) Insert ¶
func (g *GCEBetaSubnetworks) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Subnetwork, options ...Option) error
Insert Subnetwork with key of value obj.
func (*GCEBetaSubnetworks) List ¶
func (g *GCEBetaSubnetworks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.Subnetwork, error)
List all Subnetwork objects.
func (*GCEBetaSubnetworks) ListUsable ¶ added in v1.16.0
func (g *GCEBetaSubnetworks) ListUsable(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.UsableSubnetwork, error)
List all Usable Subnetwork objects.
func (*GCEBetaSubnetworks) Patch ¶ added in v1.17.0
func (g *GCEBetaSubnetworks) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.Subnetwork, options ...Option) error
Patch is a method on GCEBetaSubnetworks.
type GCEBetaTargetHttpProxies ¶
type GCEBetaTargetHttpProxies struct {
// contains filtered or unexported fields
}
GCEBetaTargetHttpProxies is a simplifying adapter for the GCE TargetHttpProxies.
func (*GCEBetaTargetHttpProxies) Delete ¶
func (g *GCEBetaTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the TargetHttpProxy referenced by key.
func (*GCEBetaTargetHttpProxies) Get ¶
func (g *GCEBetaTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetHttpProxy, error)
Get the TargetHttpProxy named by key.
func (*GCEBetaTargetHttpProxies) Insert ¶
func (g *GCEBetaTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpProxy, options ...Option) error
Insert TargetHttpProxy with key of value obj.
func (*GCEBetaTargetHttpProxies) List ¶
func (g *GCEBetaTargetHttpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.TargetHttpProxy, error)
List all TargetHttpProxy objects.
func (*GCEBetaTargetHttpProxies) SetUrlMap ¶
func (g *GCEBetaTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computebeta.UrlMapReference, options ...Option) error
SetUrlMap is a method on GCEBetaTargetHttpProxies.
type GCEBetaTargetHttpsProxies ¶
type GCEBetaTargetHttpsProxies struct {
// contains filtered or unexported fields
}
GCEBetaTargetHttpsProxies is a simplifying adapter for the GCE TargetHttpsProxies.
func (*GCEBetaTargetHttpsProxies) Delete ¶
func (g *GCEBetaTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the TargetHttpsProxy referenced by key.
func (*GCEBetaTargetHttpsProxies) Get ¶
func (g *GCEBetaTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetHttpsProxy, error)
Get the TargetHttpsProxy named by key.
func (*GCEBetaTargetHttpsProxies) Insert ¶
func (g *GCEBetaTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpsProxy, options ...Option) error
Insert TargetHttpsProxy with key of value obj.
func (*GCEBetaTargetHttpsProxies) List ¶
func (g *GCEBetaTargetHttpsProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.TargetHttpsProxy, error)
List all TargetHttpsProxy objects.
func (*GCEBetaTargetHttpsProxies) SetCertificateMap ¶ added in v1.20.0
func (g *GCEBetaTargetHttpsProxies) SetCertificateMap(ctx context.Context, key *meta.Key, arg0 *computebeta.TargetHttpsProxiesSetCertificateMapRequest, options ...Option) error
SetCertificateMap is a method on GCEBetaTargetHttpsProxies.
func (*GCEBetaTargetHttpsProxies) SetSslCertificates ¶
func (g *GCEBetaTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *computebeta.TargetHttpsProxiesSetSslCertificatesRequest, options ...Option) error
SetSslCertificates is a method on GCEBetaTargetHttpsProxies.
func (*GCEBetaTargetHttpsProxies) SetSslPolicy ¶
func (g *GCEBetaTargetHttpsProxies) SetSslPolicy(ctx context.Context, key *meta.Key, arg0 *computebeta.SslPolicyReference, options ...Option) error
SetSslPolicy is a method on GCEBetaTargetHttpsProxies.
func (*GCEBetaTargetHttpsProxies) SetUrlMap ¶
func (g *GCEBetaTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computebeta.UrlMapReference, options ...Option) error
SetUrlMap is a method on GCEBetaTargetHttpsProxies.
type GCEBetaTargetTcpProxies ¶
type GCEBetaTargetTcpProxies struct {
// contains filtered or unexported fields
}
GCEBetaTargetTcpProxies is a simplifying adapter for the GCE TargetTcpProxies.
func (*GCEBetaTargetTcpProxies) Delete ¶
func (g *GCEBetaTargetTcpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the TargetTcpProxy referenced by key.
func (*GCEBetaTargetTcpProxies) Get ¶
func (g *GCEBetaTargetTcpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetTcpProxy, error)
Get the TargetTcpProxy named by key.
func (*GCEBetaTargetTcpProxies) Insert ¶
func (g *GCEBetaTargetTcpProxies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetTcpProxy, options ...Option) error
Insert TargetTcpProxy with key of value obj.
func (*GCEBetaTargetTcpProxies) List ¶
func (g *GCEBetaTargetTcpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.TargetTcpProxy, error)
List all TargetTcpProxy objects.
func (*GCEBetaTargetTcpProxies) SetBackendService ¶
func (g *GCEBetaTargetTcpProxies) SetBackendService(ctx context.Context, key *meta.Key, arg0 *computebeta.TargetTcpProxiesSetBackendServiceRequest, options ...Option) error
SetBackendService is a method on GCEBetaTargetTcpProxies.
type GCEBetaUrlMaps ¶
type GCEBetaUrlMaps struct {
// contains filtered or unexported fields
}
GCEBetaUrlMaps is a simplifying adapter for the GCE UrlMaps.
func (*GCEBetaUrlMaps) Get ¶
func (g *GCEBetaUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.UrlMap, error)
Get the UrlMap named by key.
func (*GCEBetaUrlMaps) Insert ¶
func (g *GCEBetaUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computebeta.UrlMap, options ...Option) error
Insert UrlMap with key of value obj.
type GCEDisks ¶
type GCEDisks struct {
// contains filtered or unexported fields
}
GCEDisks is a simplifying adapter for the GCE Disks.
func (*GCEDisks) Get ¶
func (g *GCEDisks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Disk, error)
Get the Disk named by key.
func (*GCEDisks) Insert ¶
func (g *GCEDisks) Insert(ctx context.Context, key *meta.Key, obj *computega.Disk, options ...Option) error
Insert Disk with key of value obj.
type GCEFirewalls ¶
type GCEFirewalls struct {
// contains filtered or unexported fields
}
GCEFirewalls is a simplifying adapter for the GCE Firewalls.
func (*GCEFirewalls) Get ¶
func (g *GCEFirewalls) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Firewall, error)
Get the Firewall named by key.
func (*GCEFirewalls) Insert ¶
func (g *GCEFirewalls) Insert(ctx context.Context, key *meta.Key, obj *computega.Firewall, options ...Option) error
Insert Firewall with key of value obj.
func (*GCEFirewalls) List ¶
func (g *GCEFirewalls) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Firewall, error)
List all Firewall objects.
type GCEForwardingRules ¶
type GCEForwardingRules struct {
// contains filtered or unexported fields
}
GCEForwardingRules is a simplifying adapter for the GCE ForwardingRules.
func (*GCEForwardingRules) Get ¶
func (g *GCEForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.ForwardingRule, error)
Get the ForwardingRule named by key.
func (*GCEForwardingRules) Insert ¶
func (g *GCEForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computega.ForwardingRule, options ...Option) error
Insert ForwardingRule with key of value obj.
func (*GCEForwardingRules) List ¶
func (g *GCEForwardingRules) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.ForwardingRule, error)
List all ForwardingRule objects.
type GCEGlobalAddresses ¶
type GCEGlobalAddresses struct {
// contains filtered or unexported fields
}
GCEGlobalAddresses is a simplifying adapter for the GCE GlobalAddresses.
func (*GCEGlobalAddresses) Get ¶
func (g *GCEGlobalAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Address, error)
Get the Address named by key.
type GCEGlobalForwardingRules ¶
type GCEGlobalForwardingRules struct {
// contains filtered or unexported fields
}
GCEGlobalForwardingRules is a simplifying adapter for the GCE GlobalForwardingRules.
func (*GCEGlobalForwardingRules) Delete ¶
func (g *GCEGlobalForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the ForwardingRule referenced by key.
func (*GCEGlobalForwardingRules) Get ¶
func (g *GCEGlobalForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.ForwardingRule, error)
Get the ForwardingRule named by key.
func (*GCEGlobalForwardingRules) Insert ¶
func (g *GCEGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computega.ForwardingRule, options ...Option) error
Insert ForwardingRule with key of value obj.
func (*GCEGlobalForwardingRules) List ¶
func (g *GCEGlobalForwardingRules) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.ForwardingRule, error)
List all ForwardingRule objects.
type GCEGlobalNetworkEndpointGroups ¶ added in v1.25.0
type GCEGlobalNetworkEndpointGroups struct {
// contains filtered or unexported fields
}
GCEGlobalNetworkEndpointGroups is a simplifying adapter for the GCE GlobalNetworkEndpointGroups.
func (*GCEGlobalNetworkEndpointGroups) AttachNetworkEndpoints ¶ added in v1.25.0
func (g *GCEGlobalNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computega.GlobalNetworkEndpointGroupsAttachEndpointsRequest, options ...Option) error
AttachNetworkEndpoints is a method on GCEGlobalNetworkEndpointGroups.
func (*GCEGlobalNetworkEndpointGroups) Delete ¶ added in v1.25.0
func (g *GCEGlobalNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the NetworkEndpointGroup referenced by key.
func (*GCEGlobalNetworkEndpointGroups) DetachNetworkEndpoints ¶ added in v1.25.0
func (g *GCEGlobalNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computega.GlobalNetworkEndpointGroupsDetachEndpointsRequest, options ...Option) error
DetachNetworkEndpoints is a method on GCEGlobalNetworkEndpointGroups.
func (*GCEGlobalNetworkEndpointGroups) Get ¶ added in v1.25.0
func (g *GCEGlobalNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.NetworkEndpointGroup, error)
Get the NetworkEndpointGroup named by key.
func (*GCEGlobalNetworkEndpointGroups) Insert ¶ added in v1.25.0
func (g *GCEGlobalNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computega.NetworkEndpointGroup, options ...Option) error
Insert NetworkEndpointGroup with key of value obj.
func (*GCEGlobalNetworkEndpointGroups) List ¶ added in v1.25.0
func (g *GCEGlobalNetworkEndpointGroups) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointGroup, error)
List all NetworkEndpointGroup objects.
func (*GCEGlobalNetworkEndpointGroups) ListNetworkEndpoints ¶ added in v1.25.0
func (g *GCEGlobalNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a method on GCEGlobalNetworkEndpointGroups.
type GCEHealthChecks ¶
type GCEHealthChecks struct {
// contains filtered or unexported fields
}
GCEHealthChecks is a simplifying adapter for the GCE HealthChecks.
func (*GCEHealthChecks) Get ¶
func (g *GCEHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.HealthCheck, error)
Get the HealthCheck named by key.
func (*GCEHealthChecks) Insert ¶
func (g *GCEHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computega.HealthCheck, options ...Option) error
Insert HealthCheck with key of value obj.
type GCEHttpHealthChecks ¶
type GCEHttpHealthChecks struct {
// contains filtered or unexported fields
}
GCEHttpHealthChecks is a simplifying adapter for the GCE HttpHealthChecks.
func (*GCEHttpHealthChecks) Get ¶
func (g *GCEHttpHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.HttpHealthCheck, error)
Get the HttpHealthCheck named by key.
func (*GCEHttpHealthChecks) Insert ¶
func (g *GCEHttpHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computega.HttpHealthCheck, options ...Option) error
Insert HttpHealthCheck with key of value obj.
type GCEHttpsHealthChecks ¶
type GCEHttpsHealthChecks struct {
// contains filtered or unexported fields
}
GCEHttpsHealthChecks is a simplifying adapter for the GCE HttpsHealthChecks.
func (*GCEHttpsHealthChecks) Get ¶
func (g *GCEHttpsHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.HttpsHealthCheck, error)
Get the HttpsHealthCheck named by key.
func (*GCEHttpsHealthChecks) Insert ¶
func (g *GCEHttpsHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computega.HttpsHealthCheck, options ...Option) error
Insert HttpsHealthCheck with key of value obj.
type GCEImages ¶ added in v1.17.0
type GCEImages struct {
// contains filtered or unexported fields
}
GCEImages is a simplifying adapter for the GCE Images.
func (*GCEImages) Get ¶ added in v1.17.0
func (g *GCEImages) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Image, error)
Get the Image named by key.
func (*GCEImages) GetFromFamily ¶ added in v1.17.0
func (g *GCEImages) GetFromFamily(ctx context.Context, key *meta.Key, options ...Option) (*computega.Image, error)
GetFromFamily is a method on GCEImages.
func (*GCEImages) GetIamPolicy ¶ added in v1.17.0
func (g *GCEImages) GetIamPolicy(ctx context.Context, key *meta.Key, options ...Option) (*computega.Policy, error)
GetIamPolicy is a method on GCEImages.
func (*GCEImages) Insert ¶ added in v1.17.0
func (g *GCEImages) Insert(ctx context.Context, key *meta.Key, obj *computega.Image, options ...Option) error
Insert Image with key of value obj.
func (*GCEImages) List ¶ added in v1.17.0
func (g *GCEImages) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Image, error)
List all Image objects.
func (*GCEImages) Patch ¶ added in v1.17.0
func (g *GCEImages) Patch(ctx context.Context, key *meta.Key, arg0 *computega.Image, options ...Option) error
Patch is a method on GCEImages.
func (*GCEImages) SetIamPolicy ¶ added in v1.17.0
func (g *GCEImages) SetIamPolicy(ctx context.Context, key *meta.Key, arg0 *computega.GlobalSetPolicyRequest, options ...Option) (*computega.Policy, error)
SetIamPolicy is a method on GCEImages.
func (*GCEImages) SetLabels ¶ added in v1.17.0
func (g *GCEImages) SetLabels(ctx context.Context, key *meta.Key, arg0 *computega.GlobalSetLabelsRequest, options ...Option) error
SetLabels is a method on GCEImages.
func (*GCEImages) TestIamPermissions ¶ added in v1.17.0
func (g *GCEImages) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computega.TestPermissionsRequest, options ...Option) (*computega.TestPermissionsResponse, error)
TestIamPermissions is a method on GCEImages.
type GCEInstanceGroupManagers ¶ added in v1.23.0
type GCEInstanceGroupManagers struct {
// contains filtered or unexported fields
}
GCEInstanceGroupManagers is a simplifying adapter for the GCE InstanceGroupManagers.
func (*GCEInstanceGroupManagers) CreateInstances ¶ added in v1.23.0
func (g *GCEInstanceGroupManagers) CreateInstances(ctx context.Context, key *meta.Key, arg0 *computega.InstanceGroupManagersCreateInstancesRequest, options ...Option) error
CreateInstances is a method on GCEInstanceGroupManagers.
func (*GCEInstanceGroupManagers) Delete ¶ added in v1.23.0
func (g *GCEInstanceGroupManagers) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the InstanceGroupManager referenced by key.
func (*GCEInstanceGroupManagers) DeleteInstances ¶ added in v1.23.0
func (g *GCEInstanceGroupManagers) DeleteInstances(ctx context.Context, key *meta.Key, arg0 *computega.InstanceGroupManagersDeleteInstancesRequest, options ...Option) error
DeleteInstances is a method on GCEInstanceGroupManagers.
func (*GCEInstanceGroupManagers) Get ¶ added in v1.23.0
func (g *GCEInstanceGroupManagers) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.InstanceGroupManager, error)
Get the InstanceGroupManager named by key.
func (*GCEInstanceGroupManagers) Insert ¶ added in v1.23.0
func (g *GCEInstanceGroupManagers) Insert(ctx context.Context, key *meta.Key, obj *computega.InstanceGroupManager, options ...Option) error
Insert InstanceGroupManager with key of value obj.
func (*GCEInstanceGroupManagers) List ¶ added in v1.23.0
func (g *GCEInstanceGroupManagers) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.InstanceGroupManager, error)
List all InstanceGroupManager objects.
func (*GCEInstanceGroupManagers) Resize ¶ added in v1.23.0
func (g *GCEInstanceGroupManagers) Resize(ctx context.Context, key *meta.Key, arg0 int64, options ...Option) error
Resize is a method on GCEInstanceGroupManagers.
func (*GCEInstanceGroupManagers) SetInstanceTemplate ¶ added in v1.23.0
func (g *GCEInstanceGroupManagers) SetInstanceTemplate(ctx context.Context, key *meta.Key, arg0 *computega.InstanceGroupManagersSetInstanceTemplateRequest, options ...Option) error
SetInstanceTemplate is a method on GCEInstanceGroupManagers.
type GCEInstanceGroups ¶
type GCEInstanceGroups struct {
// contains filtered or unexported fields
}
GCEInstanceGroups is a simplifying adapter for the GCE InstanceGroups.
func (*GCEInstanceGroups) AddInstances ¶
func (g *GCEInstanceGroups) AddInstances(ctx context.Context, key *meta.Key, arg0 *computega.InstanceGroupsAddInstancesRequest, options ...Option) error
AddInstances is a method on GCEInstanceGroups.
func (*GCEInstanceGroups) Get ¶
func (g *GCEInstanceGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.InstanceGroup, error)
Get the InstanceGroup named by key.
func (*GCEInstanceGroups) Insert ¶
func (g *GCEInstanceGroups) Insert(ctx context.Context, key *meta.Key, obj *computega.InstanceGroup, options ...Option) error
Insert InstanceGroup with key of value obj.
func (*GCEInstanceGroups) List ¶
func (g *GCEInstanceGroups) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.InstanceGroup, error)
List all InstanceGroup objects.
func (*GCEInstanceGroups) ListInstances ¶
func (g *GCEInstanceGroups) ListInstances(ctx context.Context, key *meta.Key, arg0 *computega.InstanceGroupsListInstancesRequest, fl *filter.F, options ...Option) ([]*computega.InstanceWithNamedPorts, error)
ListInstances is a method on GCEInstanceGroups.
func (*GCEInstanceGroups) RemoveInstances ¶
func (g *GCEInstanceGroups) RemoveInstances(ctx context.Context, key *meta.Key, arg0 *computega.InstanceGroupsRemoveInstancesRequest, options ...Option) error
RemoveInstances is a method on GCEInstanceGroups.
func (*GCEInstanceGroups) SetNamedPorts ¶
func (g *GCEInstanceGroups) SetNamedPorts(ctx context.Context, key *meta.Key, arg0 *computega.InstanceGroupsSetNamedPortsRequest, options ...Option) error
SetNamedPorts is a method on GCEInstanceGroups.
type GCEInstanceTemplates ¶ added in v1.23.0
type GCEInstanceTemplates struct {
// contains filtered or unexported fields
}
GCEInstanceTemplates is a simplifying adapter for the GCE InstanceTemplates.
func (*GCEInstanceTemplates) Delete ¶ added in v1.23.0
Delete the InstanceTemplate referenced by key.
func (*GCEInstanceTemplates) Get ¶ added in v1.23.0
func (g *GCEInstanceTemplates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.InstanceTemplate, error)
Get the InstanceTemplate named by key.
type GCEInstances ¶
type GCEInstances struct {
// contains filtered or unexported fields
}
GCEInstances is a simplifying adapter for the GCE Instances.
func (*GCEInstances) AttachDisk ¶
func (g *GCEInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *computega.AttachedDisk, options ...Option) error
AttachDisk is a method on GCEInstances.
func (*GCEInstances) DetachDisk ¶
func (g *GCEInstances) DetachDisk(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
DetachDisk is a method on GCEInstances.
func (*GCEInstances) Get ¶
func (g *GCEInstances) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Instance, error)
Get the Instance named by key.
type GCENetworkEndpointGroups ¶
type GCENetworkEndpointGroups struct {
// contains filtered or unexported fields
}
GCENetworkEndpointGroups is a simplifying adapter for the GCE NetworkEndpointGroups.
func (*GCENetworkEndpointGroups) AggregatedList ¶
func (g *GCENetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computega.NetworkEndpointGroup, error)
AggregatedList lists all resources of the given type across all locations.
func (*GCENetworkEndpointGroups) AttachNetworkEndpoints ¶
func (g *GCENetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computega.NetworkEndpointGroupsAttachEndpointsRequest, options ...Option) error
AttachNetworkEndpoints is a method on GCENetworkEndpointGroups.
func (*GCENetworkEndpointGroups) Delete ¶
func (g *GCENetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the NetworkEndpointGroup referenced by key.
func (*GCENetworkEndpointGroups) DetachNetworkEndpoints ¶
func (g *GCENetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computega.NetworkEndpointGroupsDetachEndpointsRequest, options ...Option) error
DetachNetworkEndpoints is a method on GCENetworkEndpointGroups.
func (*GCENetworkEndpointGroups) Get ¶
func (g *GCENetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.NetworkEndpointGroup, error)
Get the NetworkEndpointGroup named by key.
func (*GCENetworkEndpointGroups) Insert ¶
func (g *GCENetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computega.NetworkEndpointGroup, options ...Option) error
Insert NetworkEndpointGroup with key of value obj.
func (*GCENetworkEndpointGroups) List ¶
func (g *GCENetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointGroup, error)
List all NetworkEndpointGroup objects.
func (*GCENetworkEndpointGroups) ListNetworkEndpoints ¶
func (g *GCENetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computega.NetworkEndpointGroupsListEndpointsRequest, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a method on GCENetworkEndpointGroups.
type GCENetworks ¶
type GCENetworks struct {
// contains filtered or unexported fields
}
GCENetworks is a simplifying adapter for the GCE Networks.
func (*GCENetworks) Get ¶
func (g *GCENetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Network, error)
Get the Network named by key.
type GCEProjects ¶
type GCEProjects struct {
// contains filtered or unexported fields
}
GCEProjects is a simplifying adapter for the GCE Projects.
func (*GCEProjects) SetCommonInstanceMetadata ¶
func (g *GCEProjects) SetCommonInstanceMetadata(ctx context.Context, projectID string, m *compute.Metadata) error
SetCommonInstanceMetadata for a given project.
type GCERegionBackendServices ¶
type GCERegionBackendServices struct {
// contains filtered or unexported fields
}
GCERegionBackendServices is a simplifying adapter for the GCE RegionBackendServices.
func (*GCERegionBackendServices) Delete ¶
func (g *GCERegionBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the BackendService referenced by key.
func (*GCERegionBackendServices) Get ¶
func (g *GCERegionBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.BackendService, error)
Get the BackendService named by key.
func (*GCERegionBackendServices) GetHealth ¶
func (g *GCERegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *computega.ResourceGroupReference, options ...Option) (*computega.BackendServiceGroupHealth, error)
GetHealth is a method on GCERegionBackendServices.
func (*GCERegionBackendServices) Insert ¶
func (g *GCERegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computega.BackendService, options ...Option) error
Insert BackendService with key of value obj.
func (*GCERegionBackendServices) List ¶
func (g *GCERegionBackendServices) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.BackendService, error)
List all BackendService objects.
func (*GCERegionBackendServices) Patch ¶ added in v1.22.0
func (g *GCERegionBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computega.BackendService, options ...Option) error
Patch is a method on GCERegionBackendServices.
func (*GCERegionBackendServices) SetSecurityPolicy ¶ added in v1.27.0
func (g *GCERegionBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computega.SecurityPolicyReference, options ...Option) error
SetSecurityPolicy is a method on GCERegionBackendServices.
type GCERegionDisks ¶
type GCERegionDisks struct {
// contains filtered or unexported fields
}
GCERegionDisks is a simplifying adapter for the GCE RegionDisks.
func (*GCERegionDisks) Get ¶
func (g *GCERegionDisks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Disk, error)
Get the Disk named by key.
func (*GCERegionDisks) Insert ¶
func (g *GCERegionDisks) Insert(ctx context.Context, key *meta.Key, obj *computega.Disk, options ...Option) error
Insert Disk with key of value obj.
type GCERegionHealthChecks ¶
type GCERegionHealthChecks struct {
// contains filtered or unexported fields
}
GCERegionHealthChecks is a simplifying adapter for the GCE RegionHealthChecks.
func (*GCERegionHealthChecks) Get ¶
func (g *GCERegionHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.HealthCheck, error)
Get the HealthCheck named by key.
func (*GCERegionHealthChecks) Insert ¶
func (g *GCERegionHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computega.HealthCheck, options ...Option) error
Insert HealthCheck with key of value obj.
type GCERegionNetworkEndpointGroups ¶ added in v1.29.0
type GCERegionNetworkEndpointGroups struct {
// contains filtered or unexported fields
}
GCERegionNetworkEndpointGroups is a simplifying adapter for the GCE RegionNetworkEndpointGroups.
func (*GCERegionNetworkEndpointGroups) AttachNetworkEndpoints ¶ added in v1.29.0
func (g *GCERegionNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computega.RegionNetworkEndpointGroupsAttachEndpointsRequest, options ...Option) error
AttachNetworkEndpoints is a method on GCERegionNetworkEndpointGroups.
func (*GCERegionNetworkEndpointGroups) Delete ¶ added in v1.29.0
func (g *GCERegionNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the NetworkEndpointGroup referenced by key.
func (*GCERegionNetworkEndpointGroups) DetachNetworkEndpoints ¶ added in v1.29.0
func (g *GCERegionNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computega.RegionNetworkEndpointGroupsDetachEndpointsRequest, options ...Option) error
DetachNetworkEndpoints is a method on GCERegionNetworkEndpointGroups.
func (*GCERegionNetworkEndpointGroups) Get ¶ added in v1.29.0
func (g *GCERegionNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.NetworkEndpointGroup, error)
Get the NetworkEndpointGroup named by key.
func (*GCERegionNetworkEndpointGroups) Insert ¶ added in v1.29.0
func (g *GCERegionNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computega.NetworkEndpointGroup, options ...Option) error
Insert NetworkEndpointGroup with key of value obj.
func (*GCERegionNetworkEndpointGroups) List ¶ added in v1.29.0
func (g *GCERegionNetworkEndpointGroups) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointGroup, error)
List all NetworkEndpointGroup objects.
func (*GCERegionNetworkEndpointGroups) ListNetworkEndpoints ¶ added in v1.29.0
func (g *GCERegionNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a method on GCERegionNetworkEndpointGroups.
type GCERegionSslCertificates ¶
type GCERegionSslCertificates struct {
// contains filtered or unexported fields
}
GCERegionSslCertificates is a simplifying adapter for the GCE RegionSslCertificates.
func (*GCERegionSslCertificates) Delete ¶
func (g *GCERegionSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the SslCertificate referenced by key.
func (*GCERegionSslCertificates) Get ¶
func (g *GCERegionSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.SslCertificate, error)
Get the SslCertificate named by key.
type GCERegionSslPolicies ¶ added in v1.25.0
type GCERegionSslPolicies struct {
// contains filtered or unexported fields
}
GCERegionSslPolicies is a simplifying adapter for the GCE RegionSslPolicies.
type GCERegionTargetHttpProxies ¶
type GCERegionTargetHttpProxies struct {
// contains filtered or unexported fields
}
GCERegionTargetHttpProxies is a simplifying adapter for the GCE RegionTargetHttpProxies.
func (*GCERegionTargetHttpProxies) Delete ¶
func (g *GCERegionTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the TargetHttpProxy referenced by key.
func (*GCERegionTargetHttpProxies) Get ¶
func (g *GCERegionTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetHttpProxy, error)
Get the TargetHttpProxy named by key.
func (*GCERegionTargetHttpProxies) Insert ¶
func (g *GCERegionTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetHttpProxy, options ...Option) error
Insert TargetHttpProxy with key of value obj.
type GCERegionTargetHttpsProxies ¶
type GCERegionTargetHttpsProxies struct {
// contains filtered or unexported fields
}
GCERegionTargetHttpsProxies is a simplifying adapter for the GCE RegionTargetHttpsProxies.
func (*GCERegionTargetHttpsProxies) Delete ¶
func (g *GCERegionTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete the TargetHttpsProxy referenced by key.
func (*GCERegionTargetHttpsProxies) Get ¶
func (g *GCERegionTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetHttpsProxy, error)
Get the TargetHttpsProxy named by key.
func (*GCERegionTargetHttpsProxies) Insert ¶
func (g *GCERegionTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetHttpsProxy, options ...Option) error
Insert TargetHttpsProxy with key of value obj.
func (*GCERegionTargetHttpsProxies) List ¶
func (g *GCERegionTargetHttpsProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.TargetHttpsProxy, error)
List all TargetHttpsProxy objects.
func (*GCERegionTargetHttpsProxies) Patch ¶ added in v1.25.0
func (g *GCERegionTargetHttpsProxies) Patch(ctx context.Context, key *meta.Key, arg0 *computega.TargetHttpsProxy, options ...Option) error
Patch is a method on GCERegionTargetHttpsProxies.
func (*GCERegionTargetHttpsProxies) SetSslCertificates ¶
func (g *GCERegionTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *computega.RegionTargetHttpsProxiesSetSslCertificatesRequest, options ...Option) error
SetSslCertificates is a method on GCERegionTargetHttpsProxies.
type GCERegionUrlMaps ¶
type GCERegionUrlMaps struct {
// contains filtered or unexported fields
}
GCERegionUrlMaps is a simplifying adapter for the GCE RegionUrlMaps.
func (*GCERegionUrlMaps) Get ¶
func (g *GCERegionUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.UrlMap, error)
Get the UrlMap named by key.
func (*GCERegionUrlMaps) Insert ¶
func (g *GCERegionUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computega.UrlMap, options ...Option) error
Insert UrlMap with key of value obj.
type GCERegions ¶
type GCERegions struct {
// contains filtered or unexported fields
}
GCERegions is a simplifying adapter for the GCE Regions.
type GCERouters ¶ added in v1.17.0
type GCERouters struct {
// contains filtered or unexported fields
}
GCERouters is a simplifying adapter for the GCE Routers.
func (*GCERouters) AggregatedList ¶ added in v1.17.0
func (g *GCERouters) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computega.Router, error)
AggregatedList lists all resources of the given type across all locations.
func (*GCERouters) Get ¶ added in v1.17.0
func (g *GCERouters) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Router, error)
Get the Router named by key.
func (*GCERouters) GetRouterStatus ¶ added in v1.17.0
func (g *GCERouters) GetRouterStatus(ctx context.Context, key *meta.Key, options ...Option) (*computega.RouterStatusResponse, error)
GetRouterStatus is a method on GCERouters.
func (*GCERouters) Insert ¶ added in v1.17.0
func (g *GCERouters) Insert(ctx context.Context, key *meta.Key, obj *computega.Router, options ...Option) error
Insert Router with key of value obj.
func (*GCERouters) List ¶ added in v1.17.0
func (g *GCERouters) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.Router, error)
List all Router objects.
type GCERoutes ¶
type GCERoutes struct {
// contains filtered or unexported fields
}
GCERoutes is a simplifying adapter for the GCE Routes.
func (*GCERoutes) Get ¶
func (g *GCERoutes) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Route, error)
Get the Route named by key.
type GCEServiceAttachments ¶ added in v1.18.0
type GCEServiceAttachments struct {
// contains filtered or unexported fields
}
GCEServiceAttachments is a simplifying adapter for the GCE ServiceAttachments.
func (*GCEServiceAttachments) Delete ¶ added in v1.18.0
Delete the ServiceAttachment referenced by key.
func (*GCEServiceAttachments) Get ¶ added in v1.18.0
func (g *GCEServiceAttachments) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.ServiceAttachment, error)
Get the ServiceAttachment named by key.
func (*GCEServiceAttachments) Insert ¶ added in v1.18.0
func (g *GCEServiceAttachments) Insert(ctx context.Context, key *meta.Key, obj *computega.ServiceAttachment, options ...Option) error
Insert ServiceAttachment with key of value obj.
type GCESslCertificates ¶
type GCESslCertificates struct {
// contains filtered or unexported fields
}
GCESslCertificates is a simplifying adapter for the GCE SslCertificates.
func (*GCESslCertificates) Get ¶
func (g *GCESslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.SslCertificate, error)
Get the SslCertificate named by key.
type GCESslPolicies ¶
type GCESslPolicies struct {
// contains filtered or unexported fields
}
GCESslPolicies is a simplifying adapter for the GCE SslPolicies.
type GCESubnetworks ¶
type GCESubnetworks struct {
// contains filtered or unexported fields
}
GCESubnetworks is a simplifying adapter for the GCE Subnetworks.
func (*GCESubnetworks) Get ¶
func (g *GCESubnetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Subnetwork, error)
Get the Subnetwork named by key.
func (*GCESubnetworks) Insert ¶
func (g *GCESubnetworks) Insert(ctx context.Context, key *meta.Key, obj *computega.Subnetwork, options ...Option) error
Insert Subnetwork with key of value obj.
func (*GCESubnetworks) List ¶
func (g *GCESubnetworks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.Subnetwork, error)
List all Subnetwork objects.
func (*GCESubnetworks) ListUsable ¶ added in v1.16.0
func (g *GCESubnetworks) ListUsable(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.UsableSubnetwork, error)
List all Usable Subnetwork objects.
type GCETargetHttpProxies ¶
type GCETargetHttpProxies struct {
// contains filtered or unexported fields
}
GCETargetHttpProxies is a simplifying adapter for the GCE TargetHttpProxies.
func (*GCETargetHttpProxies) Get ¶
func (g *GCETargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetHttpProxy, error)
Get the TargetHttpProxy named by key.
func (*GCETargetHttpProxies) Insert ¶
func (g *GCETargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetHttpProxy, options ...Option) error
Insert TargetHttpProxy with key of value obj.
type GCETargetHttpsProxies ¶
type GCETargetHttpsProxies struct {
// contains filtered or unexported fields
}
GCETargetHttpsProxies is a simplifying adapter for the GCE TargetHttpsProxies.
func (*GCETargetHttpsProxies) Get ¶
func (g *GCETargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetHttpsProxy, error)
Get the TargetHttpsProxy named by key.
func (*GCETargetHttpsProxies) Insert ¶
func (g *GCETargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetHttpsProxy, options ...Option) error
Insert TargetHttpsProxy with key of value obj.
func (*GCETargetHttpsProxies) List ¶
func (g *GCETargetHttpsProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.TargetHttpsProxy, error)
List all TargetHttpsProxy objects.
func (*GCETargetHttpsProxies) SetCertificateMap ¶ added in v1.20.0
func (g *GCETargetHttpsProxies) SetCertificateMap(ctx context.Context, key *meta.Key, arg0 *computega.TargetHttpsProxiesSetCertificateMapRequest, options ...Option) error
SetCertificateMap is a method on GCETargetHttpsProxies.
func (*GCETargetHttpsProxies) SetSslCertificates ¶
func (g *GCETargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *computega.TargetHttpsProxiesSetSslCertificatesRequest, options ...Option) error
SetSslCertificates is a method on GCETargetHttpsProxies.
func (*GCETargetHttpsProxies) SetSslPolicy ¶
func (g *GCETargetHttpsProxies) SetSslPolicy(ctx context.Context, key *meta.Key, arg0 *computega.SslPolicyReference, options ...Option) error
SetSslPolicy is a method on GCETargetHttpsProxies.
type GCETargetPools ¶
type GCETargetPools struct {
// contains filtered or unexported fields
}
GCETargetPools is a simplifying adapter for the GCE TargetPools.
func (*GCETargetPools) AddInstance ¶
func (g *GCETargetPools) AddInstance(ctx context.Context, key *meta.Key, arg0 *computega.TargetPoolsAddInstanceRequest, options ...Option) error
AddInstance is a method on GCETargetPools.
func (*GCETargetPools) Get ¶
func (g *GCETargetPools) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetPool, error)
Get the TargetPool named by key.
func (*GCETargetPools) Insert ¶
func (g *GCETargetPools) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetPool, options ...Option) error
Insert TargetPool with key of value obj.
func (*GCETargetPools) List ¶
func (g *GCETargetPools) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.TargetPool, error)
List all TargetPool objects.
func (*GCETargetPools) RemoveInstance ¶
func (g *GCETargetPools) RemoveInstance(ctx context.Context, key *meta.Key, arg0 *computega.TargetPoolsRemoveInstanceRequest, options ...Option) error
RemoveInstance is a method on GCETargetPools.
type GCETargetTcpProxies ¶ added in v1.17.0
type GCETargetTcpProxies struct {
// contains filtered or unexported fields
}
GCETargetTcpProxies is a simplifying adapter for the GCE TargetTcpProxies.
func (*GCETargetTcpProxies) Get ¶ added in v1.17.0
func (g *GCETargetTcpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetTcpProxy, error)
Get the TargetTcpProxy named by key.
func (*GCETargetTcpProxies) Insert ¶ added in v1.17.0
func (g *GCETargetTcpProxies) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetTcpProxy, options ...Option) error
Insert TargetTcpProxy with key of value obj.
func (*GCETargetTcpProxies) List ¶ added in v1.17.0
func (g *GCETargetTcpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.TargetTcpProxy, error)
List all TargetTcpProxy objects.
func (*GCETargetTcpProxies) SetBackendService ¶ added in v1.17.0
func (g *GCETargetTcpProxies) SetBackendService(ctx context.Context, key *meta.Key, arg0 *computega.TargetTcpProxiesSetBackendServiceRequest, options ...Option) error
SetBackendService is a method on GCETargetTcpProxies.
type GCEUrlMaps ¶
type GCEUrlMaps struct {
// contains filtered or unexported fields
}
GCEUrlMaps is a simplifying adapter for the GCE UrlMaps.
func (*GCEUrlMaps) Get ¶
func (g *GCEUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.UrlMap, error)
Get the UrlMap named by key.
func (*GCEUrlMaps) Insert ¶
func (g *GCEUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computega.UrlMap, options ...Option) error
Insert UrlMap with key of value obj.
type GCEZones ¶
type GCEZones struct {
// contains filtered or unexported fields
}
GCEZones is a simplifying adapter for the GCE Zones.
type GlobalAddresses ¶
type GlobalAddresses interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Address, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Address, error) Insert(ctx context.Context, key *meta.Key, obj *computega.Address, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error }
GlobalAddresses is an interface that allows for mocking of GlobalAddresses.
type GlobalForwardingRules ¶
type GlobalForwardingRules interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.ForwardingRule, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.ForwardingRule, error) Insert(ctx context.Context, key *meta.Key, obj *computega.ForwardingRule, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error SetLabels(context.Context, *meta.Key, *computega.GlobalSetLabelsRequest, ...Option) error SetTarget(context.Context, *meta.Key, *computega.TargetReference, ...Option) error }
GlobalForwardingRules is an interface that allows for mocking of GlobalForwardingRules.
type GlobalNetworkEndpointGroups ¶ added in v1.25.0
type GlobalNetworkEndpointGroups interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.NetworkEndpointGroup, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointGroup, error) Insert(ctx context.Context, key *meta.Key, obj *computega.NetworkEndpointGroup, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AttachNetworkEndpoints(context.Context, *meta.Key, *computega.GlobalNetworkEndpointGroupsAttachEndpointsRequest, ...Option) error DetachNetworkEndpoints(context.Context, *meta.Key, *computega.GlobalNetworkEndpointGroupsDetachEndpointsRequest, ...Option) error ListNetworkEndpoints(context.Context, *meta.Key, *filter.F, ...Option) ([]*computega.NetworkEndpointWithHealthStatus, error) }
GlobalNetworkEndpointGroups is an interface that allows for mocking of GlobalNetworkEndpointGroups.
type HealthChecks ¶
type HealthChecks interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.HealthCheck, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.HealthCheck, error) Insert(ctx context.Context, key *meta.Key, obj *computega.HealthCheck, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Update(context.Context, *meta.Key, *computega.HealthCheck, ...Option) error }
HealthChecks is an interface that allows for mocking of HealthChecks.
type HttpHealthChecks ¶
type HttpHealthChecks interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.HttpHealthCheck, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.HttpHealthCheck, error) Insert(ctx context.Context, key *meta.Key, obj *computega.HttpHealthCheck, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Update(context.Context, *meta.Key, *computega.HttpHealthCheck, ...Option) error }
HttpHealthChecks is an interface that allows for mocking of HttpHealthChecks.
type HttpsHealthChecks ¶
type HttpsHealthChecks interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.HttpsHealthCheck, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.HttpsHealthCheck, error) Insert(ctx context.Context, key *meta.Key, obj *computega.HttpsHealthCheck, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Update(context.Context, *meta.Key, *computega.HttpsHealthCheck, ...Option) error }
HttpsHealthChecks is an interface that allows for mocking of HttpsHealthChecks.
type Images ¶ added in v1.17.0
type Images interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Image, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Image, error) Insert(ctx context.Context, key *meta.Key, obj *computega.Image, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error GetFromFamily(context.Context, *meta.Key, ...Option) (*computega.Image, error) GetIamPolicy(context.Context, *meta.Key, ...Option) (*computega.Policy, error) Patch(context.Context, *meta.Key, *computega.Image, ...Option) error SetIamPolicy(context.Context, *meta.Key, *computega.GlobalSetPolicyRequest, ...Option) (*computega.Policy, error) SetLabels(context.Context, *meta.Key, *computega.GlobalSetLabelsRequest, ...Option) error TestIamPermissions(context.Context, *meta.Key, *computega.TestPermissionsRequest, ...Option) (*computega.TestPermissionsResponse, error) }
Images is an interface that allows for mocking of Images.
type InstanceGroupManagers ¶ added in v1.23.0
type InstanceGroupManagers interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.InstanceGroupManager, error) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.InstanceGroupManager, error) Insert(ctx context.Context, key *meta.Key, obj *computega.InstanceGroupManager, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error CreateInstances(context.Context, *meta.Key, *computega.InstanceGroupManagersCreateInstancesRequest, ...Option) error DeleteInstances(context.Context, *meta.Key, *computega.InstanceGroupManagersDeleteInstancesRequest, ...Option) error Resize(context.Context, *meta.Key, int64, ...Option) error SetInstanceTemplate(context.Context, *meta.Key, *computega.InstanceGroupManagersSetInstanceTemplateRequest, ...Option) error }
InstanceGroupManagers is an interface that allows for mocking of InstanceGroupManagers.
type InstanceGroups ¶
type InstanceGroups interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.InstanceGroup, error) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.InstanceGroup, error) Insert(ctx context.Context, key *meta.Key, obj *computega.InstanceGroup, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AddInstances(context.Context, *meta.Key, *computega.InstanceGroupsAddInstancesRequest, ...Option) error ListInstances(context.Context, *meta.Key, *computega.InstanceGroupsListInstancesRequest, *filter.F, ...Option) ([]*computega.InstanceWithNamedPorts, error) RemoveInstances(context.Context, *meta.Key, *computega.InstanceGroupsRemoveInstancesRequest, ...Option) error SetNamedPorts(context.Context, *meta.Key, *computega.InstanceGroupsSetNamedPortsRequest, ...Option) error }
InstanceGroups is an interface that allows for mocking of InstanceGroups.
type InstanceTemplates ¶ added in v1.23.0
type InstanceTemplates interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.InstanceTemplate, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.InstanceTemplate, error) Insert(ctx context.Context, key *meta.Key, obj *computega.InstanceTemplate, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error }
InstanceTemplates is an interface that allows for mocking of InstanceTemplates.
type Instances ¶
type Instances interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Instance, error) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.Instance, error) Insert(ctx context.Context, key *meta.Key, obj *computega.Instance, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AttachDisk(context.Context, *meta.Key, *computega.AttachedDisk, ...Option) error DetachDisk(context.Context, *meta.Key, string, ...Option) error }
Instances is an interface that allows for mocking of Instances.
type Meshes ¶ added in v1.25.0
type Meshes interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*networkservicesga.Mesh, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*networkservicesga.Mesh, error) Insert(ctx context.Context, key *meta.Key, obj *networkservicesga.Mesh, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Patch(context.Context, *meta.Key, *networkservicesga.Mesh, ...Option) error }
Meshes is an interface that allows for mocking of Meshes.
type MinimumRateLimiter ¶
type MinimumRateLimiter struct { // RateLimiter is the underlying ratelimiter which is called after the mininum time is reacehd. RateLimiter RateLimiter // Minimum is the minimum wait time before the underlying ratelimiter is called. Minimum time.Duration }
MinimumRateLimiter wraps a RateLimiter and will only call its Accept until the minimum duration has been met or the context is cancelled.
func (*MinimumRateLimiter) Accept ¶
func (m *MinimumRateLimiter) Accept(ctx context.Context, key *RateLimitKey) error
Accept blocks on the minimum duration and context. Once the minimum duration is met, the func is blocked on the underlying ratelimiter.
func (*MinimumRateLimiter) Observe ¶ added in v1.21.0
func (m *MinimumRateLimiter) Observe(ctx context.Context, err error, key *RateLimitKey)
Observe just passes error to the underlying ratelimiter.
type MockAddresses ¶
type MockAddresses struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockAddressesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error AggregatedListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAddresses, options ...Option) (bool, *computega.Address, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAddresses, options ...Option) (bool, []*computega.Address, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.Address, m *MockAddresses, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAddresses, options ...Option) (bool, error) AggregatedListHook func(ctx context.Context, fl *filter.F, m *MockAddresses, options ...Option) (bool, map[string][]*computega.Address, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAddresses is the mock for Addresses.
func NewMockAddresses ¶
func NewMockAddresses(pr ProjectRouter, objs map[meta.Key]*MockAddressesObj) *MockAddresses
NewMockAddresses returns a new mock for Addresses.
func (*MockAddresses) AggregatedList ¶
func (m *MockAddresses) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computega.Address, error)
AggregatedList is a mock for AggregatedList.
func (*MockAddresses) Get ¶
func (m *MockAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Address, error)
Get returns the object from the mock.
func (*MockAddresses) Insert ¶
func (m *MockAddresses) Insert(ctx context.Context, key *meta.Key, obj *computega.Address, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAddresses) List ¶
func (m *MockAddresses) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.Address, error)
List all of the objects in the mock in the given region.
func (*MockAddresses) Obj ¶
func (m *MockAddresses) Obj(o *computega.Address) *MockAddressesObj
Obj wraps the object for use in the mock.
type MockAddressesObj ¶
type MockAddressesObj struct {
Obj interface{}
}
MockAddressesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockAddressesObj) ToAlpha ¶
func (m *MockAddressesObj) ToAlpha() *computealpha.Address
ToAlpha retrieves the given version of the object.
func (*MockAddressesObj) ToBeta ¶
func (m *MockAddressesObj) ToBeta() *computebeta.Address
ToBeta retrieves the given version of the object.
func (*MockAddressesObj) ToGA ¶
func (m *MockAddressesObj) ToGA() *computega.Address
ToGA retrieves the given version of the object.
type MockAlphaAddresses ¶
type MockAlphaAddresses struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockAddressesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error AggregatedListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaAddresses, options ...Option) (bool, *computealpha.Address, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaAddresses, options ...Option) (bool, []*computealpha.Address, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.Address, m *MockAlphaAddresses, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaAddresses, options ...Option) (bool, error) AggregatedListHook func(ctx context.Context, fl *filter.F, m *MockAlphaAddresses, options ...Option) (bool, map[string][]*computealpha.Address, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaAddresses is the mock for Addresses.
func NewMockAlphaAddresses ¶
func NewMockAlphaAddresses(pr ProjectRouter, objs map[meta.Key]*MockAddressesObj) *MockAlphaAddresses
NewMockAlphaAddresses returns a new mock for Addresses.
func (*MockAlphaAddresses) AggregatedList ¶
func (m *MockAlphaAddresses) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computealpha.Address, error)
AggregatedList is a mock for AggregatedList.
func (*MockAlphaAddresses) Get ¶
func (m *MockAlphaAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Address, error)
Get returns the object from the mock.
func (*MockAlphaAddresses) Insert ¶
func (m *MockAlphaAddresses) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Address, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaAddresses) List ¶
func (m *MockAlphaAddresses) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.Address, error)
List all of the objects in the mock in the given region.
func (*MockAlphaAddresses) Obj ¶
func (m *MockAlphaAddresses) Obj(o *computealpha.Address) *MockAddressesObj
Obj wraps the object for use in the mock.
type MockAlphaBackendServices ¶
type MockAlphaBackendServices struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockBackendServicesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error AggregatedListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaBackendServices, options ...Option) (bool, *computealpha.BackendService, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaBackendServices, options ...Option) (bool, []*computealpha.BackendService, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.BackendService, m *MockAlphaBackendServices, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaBackendServices, options ...Option) (bool, error) AggregatedListHook func(ctx context.Context, fl *filter.F, m *MockAlphaBackendServices, options ...Option) (bool, map[string][]*computealpha.BackendService, error) AddSignedUrlKeyHook func(context.Context, *meta.Key, *computealpha.SignedUrlKey, *MockAlphaBackendServices, ...Option) error DeleteSignedUrlKeyHook func(context.Context, *meta.Key, string, *MockAlphaBackendServices, ...Option) error PatchHook func(context.Context, *meta.Key, *computealpha.BackendService, *MockAlphaBackendServices, ...Option) error SetSecurityPolicyHook func(context.Context, *meta.Key, *computealpha.SecurityPolicyReference, *MockAlphaBackendServices, ...Option) error UpdateHook func(context.Context, *meta.Key, *computealpha.BackendService, *MockAlphaBackendServices, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaBackendServices is the mock for BackendServices.
func NewMockAlphaBackendServices ¶
func NewMockAlphaBackendServices(pr ProjectRouter, objs map[meta.Key]*MockBackendServicesObj) *MockAlphaBackendServices
NewMockAlphaBackendServices returns a new mock for BackendServices.
func (*MockAlphaBackendServices) AddSignedUrlKey ¶ added in v1.18.0
func (m *MockAlphaBackendServices) AddSignedUrlKey(ctx context.Context, key *meta.Key, arg0 *computealpha.SignedUrlKey, options ...Option) error
AddSignedUrlKey is a mock for the corresponding method.
func (*MockAlphaBackendServices) AggregatedList ¶ added in v1.16.0
func (m *MockAlphaBackendServices) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computealpha.BackendService, error)
AggregatedList is a mock for AggregatedList.
func (*MockAlphaBackendServices) Delete ¶
func (m *MockAlphaBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockAlphaBackendServices) DeleteSignedUrlKey ¶ added in v1.18.0
func (m *MockAlphaBackendServices) DeleteSignedUrlKey(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
DeleteSignedUrlKey is a mock for the corresponding method.
func (*MockAlphaBackendServices) Get ¶
func (m *MockAlphaBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.BackendService, error)
Get returns the object from the mock.
func (*MockAlphaBackendServices) Insert ¶
func (m *MockAlphaBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computealpha.BackendService, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaBackendServices) List ¶
func (m *MockAlphaBackendServices) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.BackendService, error)
List all of the objects in the mock.
func (*MockAlphaBackendServices) Obj ¶
func (m *MockAlphaBackendServices) Obj(o *computealpha.BackendService) *MockBackendServicesObj
Obj wraps the object for use in the mock.
func (*MockAlphaBackendServices) Patch ¶ added in v1.22.0
func (m *MockAlphaBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.BackendService, options ...Option) error
Patch is a mock for the corresponding method.
func (*MockAlphaBackendServices) SetSecurityPolicy ¶
func (m *MockAlphaBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.SecurityPolicyReference, options ...Option) error
SetSecurityPolicy is a mock for the corresponding method.
func (*MockAlphaBackendServices) Update ¶
func (m *MockAlphaBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.BackendService, options ...Option) error
Update is a mock for the corresponding method.
type MockAlphaFirewalls ¶
type MockAlphaFirewalls struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockFirewallsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaFirewalls, options ...Option) (bool, *computealpha.Firewall, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaFirewalls, options ...Option) (bool, []*computealpha.Firewall, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.Firewall, m *MockAlphaFirewalls, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaFirewalls, options ...Option) (bool, error) PatchHook func(context.Context, *meta.Key, *computealpha.Firewall, *MockAlphaFirewalls, ...Option) error UpdateHook func(context.Context, *meta.Key, *computealpha.Firewall, *MockAlphaFirewalls, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaFirewalls is the mock for Firewalls.
func NewMockAlphaFirewalls ¶
func NewMockAlphaFirewalls(pr ProjectRouter, objs map[meta.Key]*MockFirewallsObj) *MockAlphaFirewalls
NewMockAlphaFirewalls returns a new mock for Firewalls.
func (*MockAlphaFirewalls) Get ¶
func (m *MockAlphaFirewalls) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Firewall, error)
Get returns the object from the mock.
func (*MockAlphaFirewalls) Insert ¶
func (m *MockAlphaFirewalls) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Firewall, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaFirewalls) List ¶
func (m *MockAlphaFirewalls) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.Firewall, error)
List all of the objects in the mock.
func (*MockAlphaFirewalls) Obj ¶
func (m *MockAlphaFirewalls) Obj(o *computealpha.Firewall) *MockFirewallsObj
Obj wraps the object for use in the mock.
type MockAlphaForwardingRules ¶
type MockAlphaForwardingRules struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockForwardingRulesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaForwardingRules, options ...Option) (bool, *computealpha.ForwardingRule, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaForwardingRules, options ...Option) (bool, []*computealpha.ForwardingRule, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.ForwardingRule, m *MockAlphaForwardingRules, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaForwardingRules, options ...Option) (bool, error) SetLabelsHook func(context.Context, *meta.Key, *computealpha.RegionSetLabelsRequest, *MockAlphaForwardingRules, ...Option) error SetTargetHook func(context.Context, *meta.Key, *computealpha.TargetReference, *MockAlphaForwardingRules, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaForwardingRules is the mock for ForwardingRules.
func NewMockAlphaForwardingRules ¶
func NewMockAlphaForwardingRules(pr ProjectRouter, objs map[meta.Key]*MockForwardingRulesObj) *MockAlphaForwardingRules
NewMockAlphaForwardingRules returns a new mock for ForwardingRules.
func (*MockAlphaForwardingRules) Delete ¶
func (m *MockAlphaForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockAlphaForwardingRules) Get ¶
func (m *MockAlphaForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.ForwardingRule, error)
Get returns the object from the mock.
func (*MockAlphaForwardingRules) Insert ¶
func (m *MockAlphaForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computealpha.ForwardingRule, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaForwardingRules) List ¶
func (m *MockAlphaForwardingRules) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.ForwardingRule, error)
List all of the objects in the mock in the given region.
func (*MockAlphaForwardingRules) Obj ¶
func (m *MockAlphaForwardingRules) Obj(o *computealpha.ForwardingRule) *MockForwardingRulesObj
Obj wraps the object for use in the mock.
func (*MockAlphaForwardingRules) SetLabels ¶ added in v1.19.0
func (m *MockAlphaForwardingRules) SetLabels(ctx context.Context, key *meta.Key, arg0 *computealpha.RegionSetLabelsRequest, options ...Option) error
SetLabels is a mock for the corresponding method.
func (*MockAlphaForwardingRules) SetTarget ¶
func (m *MockAlphaForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *computealpha.TargetReference, options ...Option) error
SetTarget is a mock for the corresponding method.
type MockAlphaGlobalAddresses ¶
type MockAlphaGlobalAddresses struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockGlobalAddressesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaGlobalAddresses, options ...Option) (bool, *computealpha.Address, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaGlobalAddresses, options ...Option) (bool, []*computealpha.Address, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.Address, m *MockAlphaGlobalAddresses, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaGlobalAddresses, options ...Option) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaGlobalAddresses is the mock for GlobalAddresses.
func NewMockAlphaGlobalAddresses ¶
func NewMockAlphaGlobalAddresses(pr ProjectRouter, objs map[meta.Key]*MockGlobalAddressesObj) *MockAlphaGlobalAddresses
NewMockAlphaGlobalAddresses returns a new mock for GlobalAddresses.
func (*MockAlphaGlobalAddresses) Delete ¶
func (m *MockAlphaGlobalAddresses) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockAlphaGlobalAddresses) Get ¶
func (m *MockAlphaGlobalAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Address, error)
Get returns the object from the mock.
func (*MockAlphaGlobalAddresses) Insert ¶
func (m *MockAlphaGlobalAddresses) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Address, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaGlobalAddresses) List ¶
func (m *MockAlphaGlobalAddresses) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.Address, error)
List all of the objects in the mock.
func (*MockAlphaGlobalAddresses) Obj ¶
func (m *MockAlphaGlobalAddresses) Obj(o *computealpha.Address) *MockGlobalAddressesObj
Obj wraps the object for use in the mock.
type MockAlphaGlobalForwardingRules ¶
type MockAlphaGlobalForwardingRules struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockGlobalForwardingRulesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaGlobalForwardingRules, options ...Option) (bool, *computealpha.ForwardingRule, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaGlobalForwardingRules, options ...Option) (bool, []*computealpha.ForwardingRule, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.ForwardingRule, m *MockAlphaGlobalForwardingRules, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaGlobalForwardingRules, options ...Option) (bool, error) SetLabelsHook func(context.Context, *meta.Key, *computealpha.GlobalSetLabelsRequest, *MockAlphaGlobalForwardingRules, ...Option) error SetTargetHook func(context.Context, *meta.Key, *computealpha.TargetReference, *MockAlphaGlobalForwardingRules, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaGlobalForwardingRules is the mock for GlobalForwardingRules.
func NewMockAlphaGlobalForwardingRules ¶
func NewMockAlphaGlobalForwardingRules(pr ProjectRouter, objs map[meta.Key]*MockGlobalForwardingRulesObj) *MockAlphaGlobalForwardingRules
NewMockAlphaGlobalForwardingRules returns a new mock for GlobalForwardingRules.
func (*MockAlphaGlobalForwardingRules) Delete ¶
func (m *MockAlphaGlobalForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockAlphaGlobalForwardingRules) Get ¶
func (m *MockAlphaGlobalForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.ForwardingRule, error)
Get returns the object from the mock.
func (*MockAlphaGlobalForwardingRules) Insert ¶
func (m *MockAlphaGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computealpha.ForwardingRule, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaGlobalForwardingRules) List ¶
func (m *MockAlphaGlobalForwardingRules) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.ForwardingRule, error)
List all of the objects in the mock.
func (*MockAlphaGlobalForwardingRules) Obj ¶
func (m *MockAlphaGlobalForwardingRules) Obj(o *computealpha.ForwardingRule) *MockGlobalForwardingRulesObj
Obj wraps the object for use in the mock.
func (*MockAlphaGlobalForwardingRules) SetLabels ¶ added in v1.19.0
func (m *MockAlphaGlobalForwardingRules) SetLabels(ctx context.Context, key *meta.Key, arg0 *computealpha.GlobalSetLabelsRequest, options ...Option) error
SetLabels is a mock for the corresponding method.
func (*MockAlphaGlobalForwardingRules) SetTarget ¶
func (m *MockAlphaGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *computealpha.TargetReference, options ...Option) error
SetTarget is a mock for the corresponding method.
type MockAlphaGlobalNetworkEndpointGroups ¶ added in v1.25.0
type MockAlphaGlobalNetworkEndpointGroups struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockGlobalNetworkEndpointGroupsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaGlobalNetworkEndpointGroups, options ...Option) (bool, *computealpha.NetworkEndpointGroup, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaGlobalNetworkEndpointGroups, options ...Option) (bool, []*computealpha.NetworkEndpointGroup, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.NetworkEndpointGroup, m *MockAlphaGlobalNetworkEndpointGroups, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaGlobalNetworkEndpointGroups, options ...Option) (bool, error) AttachNetworkEndpointsHook func(context.Context, *meta.Key, *computealpha.GlobalNetworkEndpointGroupsAttachEndpointsRequest, *MockAlphaGlobalNetworkEndpointGroups, ...Option) error DetachNetworkEndpointsHook func(context.Context, *meta.Key, *computealpha.GlobalNetworkEndpointGroupsDetachEndpointsRequest, *MockAlphaGlobalNetworkEndpointGroups, ...Option) error ListNetworkEndpointsHook func(context.Context, *meta.Key, *filter.F, *MockAlphaGlobalNetworkEndpointGroups, ...Option) ([]*computealpha.NetworkEndpointWithHealthStatus, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaGlobalNetworkEndpointGroups is the mock for GlobalNetworkEndpointGroups.
func NewMockAlphaGlobalNetworkEndpointGroups ¶ added in v1.25.0
func NewMockAlphaGlobalNetworkEndpointGroups(pr ProjectRouter, objs map[meta.Key]*MockGlobalNetworkEndpointGroupsObj) *MockAlphaGlobalNetworkEndpointGroups
NewMockAlphaGlobalNetworkEndpointGroups returns a new mock for GlobalNetworkEndpointGroups.
func (*MockAlphaGlobalNetworkEndpointGroups) AttachNetworkEndpoints ¶ added in v1.25.0
func (m *MockAlphaGlobalNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computealpha.GlobalNetworkEndpointGroupsAttachEndpointsRequest, options ...Option) error
AttachNetworkEndpoints is a mock for the corresponding method.
func (*MockAlphaGlobalNetworkEndpointGroups) Delete ¶ added in v1.25.0
func (m *MockAlphaGlobalNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockAlphaGlobalNetworkEndpointGroups) DetachNetworkEndpoints ¶ added in v1.25.0
func (m *MockAlphaGlobalNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computealpha.GlobalNetworkEndpointGroupsDetachEndpointsRequest, options ...Option) error
DetachNetworkEndpoints is a mock for the corresponding method.
func (*MockAlphaGlobalNetworkEndpointGroups) Get ¶ added in v1.25.0
func (m *MockAlphaGlobalNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.NetworkEndpointGroup, error)
Get returns the object from the mock.
func (*MockAlphaGlobalNetworkEndpointGroups) Insert ¶ added in v1.25.0
func (m *MockAlphaGlobalNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computealpha.NetworkEndpointGroup, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaGlobalNetworkEndpointGroups) List ¶ added in v1.25.0
func (m *MockAlphaGlobalNetworkEndpointGroups) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointGroup, error)
List all of the objects in the mock.
func (*MockAlphaGlobalNetworkEndpointGroups) ListNetworkEndpoints ¶ added in v1.25.0
func (m *MockAlphaGlobalNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a mock for the corresponding method.
func (*MockAlphaGlobalNetworkEndpointGroups) Obj ¶ added in v1.25.0
func (m *MockAlphaGlobalNetworkEndpointGroups) Obj(o *computealpha.NetworkEndpointGroup) *MockGlobalNetworkEndpointGroupsObj
Obj wraps the object for use in the mock.
type MockAlphaHealthChecks ¶
type MockAlphaHealthChecks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockHealthChecksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaHealthChecks, options ...Option) (bool, *computealpha.HealthCheck, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaHealthChecks, options ...Option) (bool, []*computealpha.HealthCheck, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.HealthCheck, m *MockAlphaHealthChecks, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaHealthChecks, options ...Option) (bool, error) UpdateHook func(context.Context, *meta.Key, *computealpha.HealthCheck, *MockAlphaHealthChecks, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaHealthChecks is the mock for HealthChecks.
func NewMockAlphaHealthChecks ¶
func NewMockAlphaHealthChecks(pr ProjectRouter, objs map[meta.Key]*MockHealthChecksObj) *MockAlphaHealthChecks
NewMockAlphaHealthChecks returns a new mock for HealthChecks.
func (*MockAlphaHealthChecks) Get ¶
func (m *MockAlphaHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.HealthCheck, error)
Get returns the object from the mock.
func (*MockAlphaHealthChecks) Insert ¶
func (m *MockAlphaHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computealpha.HealthCheck, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaHealthChecks) List ¶
func (m *MockAlphaHealthChecks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.HealthCheck, error)
List all of the objects in the mock.
func (*MockAlphaHealthChecks) Obj ¶
func (m *MockAlphaHealthChecks) Obj(o *computealpha.HealthCheck) *MockHealthChecksObj
Obj wraps the object for use in the mock.
func (*MockAlphaHealthChecks) Update ¶
func (m *MockAlphaHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.HealthCheck, options ...Option) error
Update is a mock for the corresponding method.
type MockAlphaImages ¶ added in v1.17.0
type MockAlphaImages struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockImagesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaImages, options ...Option) (bool, *computealpha.Image, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaImages, options ...Option) (bool, []*computealpha.Image, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.Image, m *MockAlphaImages, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaImages, options ...Option) (bool, error) GetFromFamilyHook func(context.Context, *meta.Key, *MockAlphaImages, ...Option) (*computealpha.Image, error) GetIamPolicyHook func(context.Context, *meta.Key, *MockAlphaImages, ...Option) (*computealpha.Policy, error) PatchHook func(context.Context, *meta.Key, *computealpha.Image, *MockAlphaImages, ...Option) error SetIamPolicyHook func(context.Context, *meta.Key, *computealpha.GlobalSetPolicyRequest, *MockAlphaImages, ...Option) (*computealpha.Policy, error) SetLabelsHook func(context.Context, *meta.Key, *computealpha.GlobalSetLabelsRequest, *MockAlphaImages, ...Option) error TestIamPermissionsHook func(context.Context, *meta.Key, *computealpha.TestPermissionsRequest, *MockAlphaImages, ...Option) (*computealpha.TestPermissionsResponse, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaImages is the mock for Images.
func NewMockAlphaImages ¶ added in v1.17.0
func NewMockAlphaImages(pr ProjectRouter, objs map[meta.Key]*MockImagesObj) *MockAlphaImages
NewMockAlphaImages returns a new mock for Images.
func (*MockAlphaImages) Get ¶ added in v1.17.0
func (m *MockAlphaImages) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Image, error)
Get returns the object from the mock.
func (*MockAlphaImages) GetFromFamily ¶ added in v1.17.0
func (m *MockAlphaImages) GetFromFamily(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Image, error)
GetFromFamily is a mock for the corresponding method.
func (*MockAlphaImages) GetIamPolicy ¶ added in v1.17.0
func (m *MockAlphaImages) GetIamPolicy(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Policy, error)
GetIamPolicy is a mock for the corresponding method.
func (*MockAlphaImages) Insert ¶ added in v1.17.0
func (m *MockAlphaImages) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Image, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaImages) List ¶ added in v1.17.0
func (m *MockAlphaImages) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.Image, error)
List all of the objects in the mock.
func (*MockAlphaImages) Obj ¶ added in v1.17.0
func (m *MockAlphaImages) Obj(o *computealpha.Image) *MockImagesObj
Obj wraps the object for use in the mock.
func (*MockAlphaImages) Patch ¶ added in v1.17.0
func (m *MockAlphaImages) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.Image, options ...Option) error
Patch is a mock for the corresponding method.
func (*MockAlphaImages) SetIamPolicy ¶ added in v1.17.0
func (m *MockAlphaImages) SetIamPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.GlobalSetPolicyRequest, options ...Option) (*computealpha.Policy, error)
SetIamPolicy is a mock for the corresponding method.
func (*MockAlphaImages) SetLabels ¶ added in v1.17.0
func (m *MockAlphaImages) SetLabels(ctx context.Context, key *meta.Key, arg0 *computealpha.GlobalSetLabelsRequest, options ...Option) error
SetLabels is a mock for the corresponding method.
func (*MockAlphaImages) TestIamPermissions ¶ added in v1.17.0
func (m *MockAlphaImages) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computealpha.TestPermissionsRequest, options ...Option) (*computealpha.TestPermissionsResponse, error)
TestIamPermissions is a mock for the corresponding method.
type MockAlphaInstances ¶
type MockAlphaInstances struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockInstancesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaInstances, options ...Option) (bool, *computealpha.Instance, error) ListHook func(ctx context.Context, zone string, fl *filter.F, m *MockAlphaInstances, options ...Option) (bool, []*computealpha.Instance, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.Instance, m *MockAlphaInstances, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaInstances, options ...Option) (bool, error) AttachDiskHook func(context.Context, *meta.Key, *computealpha.AttachedDisk, *MockAlphaInstances, ...Option) error DetachDiskHook func(context.Context, *meta.Key, string, *MockAlphaInstances, ...Option) error UpdateNetworkInterfaceHook func(context.Context, *meta.Key, string, *computealpha.NetworkInterface, *MockAlphaInstances, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaInstances is the mock for Instances.
func NewMockAlphaInstances ¶
func NewMockAlphaInstances(pr ProjectRouter, objs map[meta.Key]*MockInstancesObj) *MockAlphaInstances
NewMockAlphaInstances returns a new mock for Instances.
func (*MockAlphaInstances) AttachDisk ¶
func (m *MockAlphaInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *computealpha.AttachedDisk, options ...Option) error
AttachDisk is a mock for the corresponding method.
func (*MockAlphaInstances) DetachDisk ¶
func (m *MockAlphaInstances) DetachDisk(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
DetachDisk is a mock for the corresponding method.
func (*MockAlphaInstances) Get ¶
func (m *MockAlphaInstances) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Instance, error)
Get returns the object from the mock.
func (*MockAlphaInstances) Insert ¶
func (m *MockAlphaInstances) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Instance, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaInstances) List ¶
func (m *MockAlphaInstances) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computealpha.Instance, error)
List all of the objects in the mock in the given zone.
func (*MockAlphaInstances) Obj ¶
func (m *MockAlphaInstances) Obj(o *computealpha.Instance) *MockInstancesObj
Obj wraps the object for use in the mock.
func (*MockAlphaInstances) UpdateNetworkInterface ¶
func (m *MockAlphaInstances) UpdateNetworkInterface(ctx context.Context, key *meta.Key, arg0 string, arg1 *computealpha.NetworkInterface, options ...Option) error
UpdateNetworkInterface is a mock for the corresponding method.
type MockAlphaNetworkEndpointGroups ¶
type MockAlphaNetworkEndpointGroups struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockNetworkEndpointGroupsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error AggregatedListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaNetworkEndpointGroups, options ...Option) (bool, *computealpha.NetworkEndpointGroup, error) ListHook func(ctx context.Context, zone string, fl *filter.F, m *MockAlphaNetworkEndpointGroups, options ...Option) (bool, []*computealpha.NetworkEndpointGroup, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.NetworkEndpointGroup, m *MockAlphaNetworkEndpointGroups, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaNetworkEndpointGroups, options ...Option) (bool, error) AggregatedListHook func(ctx context.Context, fl *filter.F, m *MockAlphaNetworkEndpointGroups, options ...Option) (bool, map[string][]*computealpha.NetworkEndpointGroup, error) AttachNetworkEndpointsHook func(context.Context, *meta.Key, *computealpha.NetworkEndpointGroupsAttachEndpointsRequest, *MockAlphaNetworkEndpointGroups, ...Option) error DetachNetworkEndpointsHook func(context.Context, *meta.Key, *computealpha.NetworkEndpointGroupsDetachEndpointsRequest, *MockAlphaNetworkEndpointGroups, ...Option) error ListNetworkEndpointsHook func(context.Context, *meta.Key, *computealpha.NetworkEndpointGroupsListEndpointsRequest, *filter.F, *MockAlphaNetworkEndpointGroups, ...Option) ([]*computealpha.NetworkEndpointWithHealthStatus, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaNetworkEndpointGroups is the mock for NetworkEndpointGroups.
func NewMockAlphaNetworkEndpointGroups ¶
func NewMockAlphaNetworkEndpointGroups(pr ProjectRouter, objs map[meta.Key]*MockNetworkEndpointGroupsObj) *MockAlphaNetworkEndpointGroups
NewMockAlphaNetworkEndpointGroups returns a new mock for NetworkEndpointGroups.
func (*MockAlphaNetworkEndpointGroups) AggregatedList ¶
func (m *MockAlphaNetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computealpha.NetworkEndpointGroup, error)
AggregatedList is a mock for AggregatedList.
func (*MockAlphaNetworkEndpointGroups) AttachNetworkEndpoints ¶
func (m *MockAlphaNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computealpha.NetworkEndpointGroupsAttachEndpointsRequest, options ...Option) error
AttachNetworkEndpoints is a mock for the corresponding method.
func (*MockAlphaNetworkEndpointGroups) Delete ¶
func (m *MockAlphaNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockAlphaNetworkEndpointGroups) DetachNetworkEndpoints ¶
func (m *MockAlphaNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computealpha.NetworkEndpointGroupsDetachEndpointsRequest, options ...Option) error
DetachNetworkEndpoints is a mock for the corresponding method.
func (*MockAlphaNetworkEndpointGroups) Get ¶
func (m *MockAlphaNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.NetworkEndpointGroup, error)
Get returns the object from the mock.
func (*MockAlphaNetworkEndpointGroups) Insert ¶
func (m *MockAlphaNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computealpha.NetworkEndpointGroup, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaNetworkEndpointGroups) List ¶
func (m *MockAlphaNetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointGroup, error)
List all of the objects in the mock in the given zone.
func (*MockAlphaNetworkEndpointGroups) ListNetworkEndpoints ¶
func (m *MockAlphaNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computealpha.NetworkEndpointGroupsListEndpointsRequest, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a mock for the corresponding method.
func (*MockAlphaNetworkEndpointGroups) Obj ¶
func (m *MockAlphaNetworkEndpointGroups) Obj(o *computealpha.NetworkEndpointGroup) *MockNetworkEndpointGroupsObj
Obj wraps the object for use in the mock.
type MockAlphaNetworkFirewallPolicies ¶ added in v1.17.0
type MockAlphaNetworkFirewallPolicies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockNetworkFirewallPoliciesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaNetworkFirewallPolicies, options ...Option) (bool, *computealpha.FirewallPolicy, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaNetworkFirewallPolicies, options ...Option) (bool, []*computealpha.FirewallPolicy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.FirewallPolicy, m *MockAlphaNetworkFirewallPolicies, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaNetworkFirewallPolicies, options ...Option) (bool, error) AddAssociationHook func(context.Context, *meta.Key, *computealpha.FirewallPolicyAssociation, *MockAlphaNetworkFirewallPolicies, ...Option) error AddRuleHook func(context.Context, *meta.Key, *computealpha.FirewallPolicyRule, *MockAlphaNetworkFirewallPolicies, ...Option) error CloneRulesHook func(context.Context, *meta.Key, *MockAlphaNetworkFirewallPolicies, ...Option) error GetAssociationHook func(context.Context, *meta.Key, *MockAlphaNetworkFirewallPolicies, ...Option) (*computealpha.FirewallPolicyAssociation, error) GetIamPolicyHook func(context.Context, *meta.Key, *MockAlphaNetworkFirewallPolicies, ...Option) (*computealpha.Policy, error) GetRuleHook func(context.Context, *meta.Key, *MockAlphaNetworkFirewallPolicies, ...Option) (*computealpha.FirewallPolicyRule, error) PatchHook func(context.Context, *meta.Key, *computealpha.FirewallPolicy, *MockAlphaNetworkFirewallPolicies, ...Option) error PatchRuleHook func(context.Context, *meta.Key, *computealpha.FirewallPolicyRule, *MockAlphaNetworkFirewallPolicies, ...Option) error RemoveAssociationHook func(context.Context, *meta.Key, *MockAlphaNetworkFirewallPolicies, ...Option) error RemoveRuleHook func(context.Context, *meta.Key, *MockAlphaNetworkFirewallPolicies, ...Option) error SetIamPolicyHook func(context.Context, *meta.Key, *computealpha.GlobalSetPolicyRequest, *MockAlphaNetworkFirewallPolicies, ...Option) (*computealpha.Policy, error) TestIamPermissionsHook func(context.Context, *meta.Key, *computealpha.TestPermissionsRequest, *MockAlphaNetworkFirewallPolicies, ...Option) (*computealpha.TestPermissionsResponse, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaNetworkFirewallPolicies is the mock for NetworkFirewallPolicies.
func NewMockAlphaNetworkFirewallPolicies ¶ added in v1.17.0
func NewMockAlphaNetworkFirewallPolicies(pr ProjectRouter, objs map[meta.Key]*MockNetworkFirewallPoliciesObj) *MockAlphaNetworkFirewallPolicies
NewMockAlphaNetworkFirewallPolicies returns a new mock for NetworkFirewallPolicies.
func (*MockAlphaNetworkFirewallPolicies) AddAssociation ¶ added in v1.17.0
func (m *MockAlphaNetworkFirewallPolicies) AddAssociation(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicyAssociation, options ...Option) error
AddAssociation is a mock for the corresponding method.
func (*MockAlphaNetworkFirewallPolicies) AddRule ¶ added in v1.17.0
func (m *MockAlphaNetworkFirewallPolicies) AddRule(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicyRule, options ...Option) error
AddRule is a mock for the corresponding method.
func (*MockAlphaNetworkFirewallPolicies) CloneRules ¶ added in v1.17.0
func (m *MockAlphaNetworkFirewallPolicies) CloneRules(ctx context.Context, key *meta.Key, options ...Option) error
CloneRules is a mock for the corresponding method.
func (*MockAlphaNetworkFirewallPolicies) Delete ¶ added in v1.17.0
func (m *MockAlphaNetworkFirewallPolicies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockAlphaNetworkFirewallPolicies) Get ¶ added in v1.17.0
func (m *MockAlphaNetworkFirewallPolicies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicy, error)
Get returns the object from the mock.
func (*MockAlphaNetworkFirewallPolicies) GetAssociation ¶ added in v1.17.0
func (m *MockAlphaNetworkFirewallPolicies) GetAssociation(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicyAssociation, error)
GetAssociation is a mock for the corresponding method.
func (*MockAlphaNetworkFirewallPolicies) GetIamPolicy ¶ added in v1.17.0
func (m *MockAlphaNetworkFirewallPolicies) GetIamPolicy(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Policy, error)
GetIamPolicy is a mock for the corresponding method.
func (*MockAlphaNetworkFirewallPolicies) GetRule ¶ added in v1.17.0
func (m *MockAlphaNetworkFirewallPolicies) GetRule(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicyRule, error)
GetRule is a mock for the corresponding method.
func (*MockAlphaNetworkFirewallPolicies) Insert ¶ added in v1.17.0
func (m *MockAlphaNetworkFirewallPolicies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.FirewallPolicy, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaNetworkFirewallPolicies) List ¶ added in v1.17.0
func (m *MockAlphaNetworkFirewallPolicies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.FirewallPolicy, error)
List all of the objects in the mock.
func (*MockAlphaNetworkFirewallPolicies) Obj ¶ added in v1.17.0
func (m *MockAlphaNetworkFirewallPolicies) Obj(o *computealpha.FirewallPolicy) *MockNetworkFirewallPoliciesObj
Obj wraps the object for use in the mock.
func (*MockAlphaNetworkFirewallPolicies) Patch ¶ added in v1.17.0
func (m *MockAlphaNetworkFirewallPolicies) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicy, options ...Option) error
Patch is a mock for the corresponding method.
func (*MockAlphaNetworkFirewallPolicies) PatchRule ¶ added in v1.17.0
func (m *MockAlphaNetworkFirewallPolicies) PatchRule(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicyRule, options ...Option) error
PatchRule is a mock for the corresponding method.
func (*MockAlphaNetworkFirewallPolicies) RemoveAssociation ¶ added in v1.17.0
func (m *MockAlphaNetworkFirewallPolicies) RemoveAssociation(ctx context.Context, key *meta.Key, options ...Option) error
RemoveAssociation is a mock for the corresponding method.
func (*MockAlphaNetworkFirewallPolicies) RemoveRule ¶ added in v1.17.0
func (m *MockAlphaNetworkFirewallPolicies) RemoveRule(ctx context.Context, key *meta.Key, options ...Option) error
RemoveRule is a mock for the corresponding method.
func (*MockAlphaNetworkFirewallPolicies) SetIamPolicy ¶ added in v1.17.0
func (m *MockAlphaNetworkFirewallPolicies) SetIamPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.GlobalSetPolicyRequest, options ...Option) (*computealpha.Policy, error)
SetIamPolicy is a mock for the corresponding method.
func (*MockAlphaNetworkFirewallPolicies) TestIamPermissions ¶ added in v1.17.0
func (m *MockAlphaNetworkFirewallPolicies) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computealpha.TestPermissionsRequest, options ...Option) (*computealpha.TestPermissionsResponse, error)
TestIamPermissions is a mock for the corresponding method.
type MockAlphaNetworks ¶
type MockAlphaNetworks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockNetworksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaNetworks, options ...Option) (bool, *computealpha.Network, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaNetworks, options ...Option) (bool, []*computealpha.Network, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.Network, m *MockAlphaNetworks, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaNetworks, options ...Option) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaNetworks is the mock for Networks.
func NewMockAlphaNetworks ¶
func NewMockAlphaNetworks(pr ProjectRouter, objs map[meta.Key]*MockNetworksObj) *MockAlphaNetworks
NewMockAlphaNetworks returns a new mock for Networks.
func (*MockAlphaNetworks) Get ¶
func (m *MockAlphaNetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Network, error)
Get returns the object from the mock.
func (*MockAlphaNetworks) Insert ¶
func (m *MockAlphaNetworks) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Network, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaNetworks) List ¶
func (m *MockAlphaNetworks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.Network, error)
List all of the objects in the mock.
func (*MockAlphaNetworks) Obj ¶
func (m *MockAlphaNetworks) Obj(o *computealpha.Network) *MockNetworksObj
Obj wraps the object for use in the mock.
type MockAlphaRegionBackendServices ¶
type MockAlphaRegionBackendServices struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionBackendServicesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionBackendServices, options ...Option) (bool, *computealpha.BackendService, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaRegionBackendServices, options ...Option) (bool, []*computealpha.BackendService, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.BackendService, m *MockAlphaRegionBackendServices, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionBackendServices, options ...Option) (bool, error) GetHealthHook func(context.Context, *meta.Key, *computealpha.ResourceGroupReference, *MockAlphaRegionBackendServices, ...Option) (*computealpha.BackendServiceGroupHealth, error) PatchHook func(context.Context, *meta.Key, *computealpha.BackendService, *MockAlphaRegionBackendServices, ...Option) error SetSecurityPolicyHook func(context.Context, *meta.Key, *computealpha.SecurityPolicyReference, *MockAlphaRegionBackendServices, ...Option) error UpdateHook func(context.Context, *meta.Key, *computealpha.BackendService, *MockAlphaRegionBackendServices, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaRegionBackendServices is the mock for RegionBackendServices.
func NewMockAlphaRegionBackendServices ¶
func NewMockAlphaRegionBackendServices(pr ProjectRouter, objs map[meta.Key]*MockRegionBackendServicesObj) *MockAlphaRegionBackendServices
NewMockAlphaRegionBackendServices returns a new mock for RegionBackendServices.
func (*MockAlphaRegionBackendServices) Delete ¶
func (m *MockAlphaRegionBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockAlphaRegionBackendServices) Get ¶
func (m *MockAlphaRegionBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.BackendService, error)
Get returns the object from the mock.
func (*MockAlphaRegionBackendServices) GetHealth ¶
func (m *MockAlphaRegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *computealpha.ResourceGroupReference, options ...Option) (*computealpha.BackendServiceGroupHealth, error)
GetHealth is a mock for the corresponding method.
func (*MockAlphaRegionBackendServices) Insert ¶
func (m *MockAlphaRegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computealpha.BackendService, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaRegionBackendServices) List ¶
func (m *MockAlphaRegionBackendServices) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.BackendService, error)
List all of the objects in the mock in the given region.
func (*MockAlphaRegionBackendServices) Obj ¶
func (m *MockAlphaRegionBackendServices) Obj(o *computealpha.BackendService) *MockRegionBackendServicesObj
Obj wraps the object for use in the mock.
func (*MockAlphaRegionBackendServices) Patch ¶ added in v1.22.0
func (m *MockAlphaRegionBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.BackendService, options ...Option) error
Patch is a mock for the corresponding method.
func (*MockAlphaRegionBackendServices) SetSecurityPolicy ¶ added in v1.27.0
func (m *MockAlphaRegionBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.SecurityPolicyReference, options ...Option) error
SetSecurityPolicy is a mock for the corresponding method.
func (*MockAlphaRegionBackendServices) Update ¶
func (m *MockAlphaRegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.BackendService, options ...Option) error
Update is a mock for the corresponding method.
type MockAlphaRegionHealthChecks ¶
type MockAlphaRegionHealthChecks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionHealthChecksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionHealthChecks, options ...Option) (bool, *computealpha.HealthCheck, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaRegionHealthChecks, options ...Option) (bool, []*computealpha.HealthCheck, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.HealthCheck, m *MockAlphaRegionHealthChecks, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionHealthChecks, options ...Option) (bool, error) UpdateHook func(context.Context, *meta.Key, *computealpha.HealthCheck, *MockAlphaRegionHealthChecks, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaRegionHealthChecks is the mock for RegionHealthChecks.
func NewMockAlphaRegionHealthChecks ¶
func NewMockAlphaRegionHealthChecks(pr ProjectRouter, objs map[meta.Key]*MockRegionHealthChecksObj) *MockAlphaRegionHealthChecks
NewMockAlphaRegionHealthChecks returns a new mock for RegionHealthChecks.
func (*MockAlphaRegionHealthChecks) Delete ¶
func (m *MockAlphaRegionHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockAlphaRegionHealthChecks) Get ¶
func (m *MockAlphaRegionHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.HealthCheck, error)
Get returns the object from the mock.
func (*MockAlphaRegionHealthChecks) Insert ¶
func (m *MockAlphaRegionHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computealpha.HealthCheck, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaRegionHealthChecks) List ¶
func (m *MockAlphaRegionHealthChecks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.HealthCheck, error)
List all of the objects in the mock in the given region.
func (*MockAlphaRegionHealthChecks) Obj ¶
func (m *MockAlphaRegionHealthChecks) Obj(o *computealpha.HealthCheck) *MockRegionHealthChecksObj
Obj wraps the object for use in the mock.
func (*MockAlphaRegionHealthChecks) Update ¶
func (m *MockAlphaRegionHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computealpha.HealthCheck, options ...Option) error
Update is a mock for the corresponding method.
type MockAlphaRegionNetworkEndpointGroups ¶ added in v1.29.0
type MockAlphaRegionNetworkEndpointGroups struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionNetworkEndpointGroupsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionNetworkEndpointGroups, options ...Option) (bool, *computealpha.NetworkEndpointGroup, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaRegionNetworkEndpointGroups, options ...Option) (bool, []*computealpha.NetworkEndpointGroup, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.NetworkEndpointGroup, m *MockAlphaRegionNetworkEndpointGroups, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionNetworkEndpointGroups, options ...Option) (bool, error) AttachNetworkEndpointsHook func(context.Context, *meta.Key, *computealpha.RegionNetworkEndpointGroupsAttachEndpointsRequest, *MockAlphaRegionNetworkEndpointGroups, ...Option) error DetachNetworkEndpointsHook func(context.Context, *meta.Key, *computealpha.RegionNetworkEndpointGroupsDetachEndpointsRequest, *MockAlphaRegionNetworkEndpointGroups, ...Option) error ListNetworkEndpointsHook func(context.Context, *meta.Key, *filter.F, *MockAlphaRegionNetworkEndpointGroups, ...Option) ([]*computealpha.NetworkEndpointWithHealthStatus, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaRegionNetworkEndpointGroups is the mock for RegionNetworkEndpointGroups.
func NewMockAlphaRegionNetworkEndpointGroups ¶ added in v1.29.0
func NewMockAlphaRegionNetworkEndpointGroups(pr ProjectRouter, objs map[meta.Key]*MockRegionNetworkEndpointGroupsObj) *MockAlphaRegionNetworkEndpointGroups
NewMockAlphaRegionNetworkEndpointGroups returns a new mock for RegionNetworkEndpointGroups.
func (*MockAlphaRegionNetworkEndpointGroups) AttachNetworkEndpoints ¶ added in v1.29.0
func (m *MockAlphaRegionNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computealpha.RegionNetworkEndpointGroupsAttachEndpointsRequest, options ...Option) error
AttachNetworkEndpoints is a mock for the corresponding method.
func (*MockAlphaRegionNetworkEndpointGroups) Delete ¶ added in v1.29.0
func (m *MockAlphaRegionNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockAlphaRegionNetworkEndpointGroups) DetachNetworkEndpoints ¶ added in v1.29.0
func (m *MockAlphaRegionNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computealpha.RegionNetworkEndpointGroupsDetachEndpointsRequest, options ...Option) error
DetachNetworkEndpoints is a mock for the corresponding method.
func (*MockAlphaRegionNetworkEndpointGroups) Get ¶ added in v1.29.0
func (m *MockAlphaRegionNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.NetworkEndpointGroup, error)
Get returns the object from the mock.
func (*MockAlphaRegionNetworkEndpointGroups) Insert ¶ added in v1.29.0
func (m *MockAlphaRegionNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computealpha.NetworkEndpointGroup, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaRegionNetworkEndpointGroups) List ¶ added in v1.29.0
func (m *MockAlphaRegionNetworkEndpointGroups) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointGroup, error)
List all of the objects in the mock in the given region.
func (*MockAlphaRegionNetworkEndpointGroups) ListNetworkEndpoints ¶ added in v1.29.0
func (m *MockAlphaRegionNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computealpha.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a mock for the corresponding method.
func (*MockAlphaRegionNetworkEndpointGroups) Obj ¶ added in v1.29.0
func (m *MockAlphaRegionNetworkEndpointGroups) Obj(o *computealpha.NetworkEndpointGroup) *MockRegionNetworkEndpointGroupsObj
Obj wraps the object for use in the mock.
type MockAlphaRegionNetworkFirewallPolicies ¶ added in v1.17.0
type MockAlphaRegionNetworkFirewallPolicies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionNetworkFirewallPoliciesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionNetworkFirewallPolicies, options ...Option) (bool, *computealpha.FirewallPolicy, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaRegionNetworkFirewallPolicies, options ...Option) (bool, []*computealpha.FirewallPolicy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.FirewallPolicy, m *MockAlphaRegionNetworkFirewallPolicies, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionNetworkFirewallPolicies, options ...Option) (bool, error) AddAssociationHook func(context.Context, *meta.Key, *computealpha.FirewallPolicyAssociation, *MockAlphaRegionNetworkFirewallPolicies, ...Option) error AddRuleHook func(context.Context, *meta.Key, *computealpha.FirewallPolicyRule, *MockAlphaRegionNetworkFirewallPolicies, ...Option) error CloneRulesHook func(context.Context, *meta.Key, *MockAlphaRegionNetworkFirewallPolicies, ...Option) error GetAssociationHook func(context.Context, *meta.Key, *MockAlphaRegionNetworkFirewallPolicies, ...Option) (*computealpha.FirewallPolicyAssociation, error) GetIamPolicyHook func(context.Context, *meta.Key, *MockAlphaRegionNetworkFirewallPolicies, ...Option) (*computealpha.Policy, error) GetRuleHook func(context.Context, *meta.Key, *MockAlphaRegionNetworkFirewallPolicies, ...Option) (*computealpha.FirewallPolicyRule, error) PatchHook func(context.Context, *meta.Key, *computealpha.FirewallPolicy, *MockAlphaRegionNetworkFirewallPolicies, ...Option) error PatchRuleHook func(context.Context, *meta.Key, *computealpha.FirewallPolicyRule, *MockAlphaRegionNetworkFirewallPolicies, ...Option) error RemoveAssociationHook func(context.Context, *meta.Key, *MockAlphaRegionNetworkFirewallPolicies, ...Option) error RemoveRuleHook func(context.Context, *meta.Key, *MockAlphaRegionNetworkFirewallPolicies, ...Option) error SetIamPolicyHook func(context.Context, *meta.Key, *computealpha.RegionSetPolicyRequest, *MockAlphaRegionNetworkFirewallPolicies, ...Option) (*computealpha.Policy, error) TestIamPermissionsHook func(context.Context, *meta.Key, *computealpha.TestPermissionsRequest, *MockAlphaRegionNetworkFirewallPolicies, ...Option) (*computealpha.TestPermissionsResponse, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaRegionNetworkFirewallPolicies is the mock for RegionNetworkFirewallPolicies.
func NewMockAlphaRegionNetworkFirewallPolicies ¶ added in v1.17.0
func NewMockAlphaRegionNetworkFirewallPolicies(pr ProjectRouter, objs map[meta.Key]*MockRegionNetworkFirewallPoliciesObj) *MockAlphaRegionNetworkFirewallPolicies
NewMockAlphaRegionNetworkFirewallPolicies returns a new mock for RegionNetworkFirewallPolicies.
func (*MockAlphaRegionNetworkFirewallPolicies) AddAssociation ¶ added in v1.17.0
func (m *MockAlphaRegionNetworkFirewallPolicies) AddAssociation(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicyAssociation, options ...Option) error
AddAssociation is a mock for the corresponding method.
func (*MockAlphaRegionNetworkFirewallPolicies) AddRule ¶ added in v1.17.0
func (m *MockAlphaRegionNetworkFirewallPolicies) AddRule(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicyRule, options ...Option) error
AddRule is a mock for the corresponding method.
func (*MockAlphaRegionNetworkFirewallPolicies) CloneRules ¶ added in v1.17.0
func (m *MockAlphaRegionNetworkFirewallPolicies) CloneRules(ctx context.Context, key *meta.Key, options ...Option) error
CloneRules is a mock for the corresponding method.
func (*MockAlphaRegionNetworkFirewallPolicies) Delete ¶ added in v1.17.0
func (m *MockAlphaRegionNetworkFirewallPolicies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockAlphaRegionNetworkFirewallPolicies) Get ¶ added in v1.17.0
func (m *MockAlphaRegionNetworkFirewallPolicies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicy, error)
Get returns the object from the mock.
func (*MockAlphaRegionNetworkFirewallPolicies) GetAssociation ¶ added in v1.17.0
func (m *MockAlphaRegionNetworkFirewallPolicies) GetAssociation(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicyAssociation, error)
GetAssociation is a mock for the corresponding method.
func (*MockAlphaRegionNetworkFirewallPolicies) GetIamPolicy ¶ added in v1.17.0
func (m *MockAlphaRegionNetworkFirewallPolicies) GetIamPolicy(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Policy, error)
GetIamPolicy is a mock for the corresponding method.
func (*MockAlphaRegionNetworkFirewallPolicies) GetRule ¶ added in v1.17.0
func (m *MockAlphaRegionNetworkFirewallPolicies) GetRule(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.FirewallPolicyRule, error)
GetRule is a mock for the corresponding method.
func (*MockAlphaRegionNetworkFirewallPolicies) Insert ¶ added in v1.17.0
func (m *MockAlphaRegionNetworkFirewallPolicies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.FirewallPolicy, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaRegionNetworkFirewallPolicies) List ¶ added in v1.17.0
func (m *MockAlphaRegionNetworkFirewallPolicies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.FirewallPolicy, error)
List all of the objects in the mock in the given region.
func (*MockAlphaRegionNetworkFirewallPolicies) Obj ¶ added in v1.17.0
func (m *MockAlphaRegionNetworkFirewallPolicies) Obj(o *computealpha.FirewallPolicy) *MockRegionNetworkFirewallPoliciesObj
Obj wraps the object for use in the mock.
func (*MockAlphaRegionNetworkFirewallPolicies) Patch ¶ added in v1.17.0
func (m *MockAlphaRegionNetworkFirewallPolicies) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicy, options ...Option) error
Patch is a mock for the corresponding method.
func (*MockAlphaRegionNetworkFirewallPolicies) PatchRule ¶ added in v1.17.0
func (m *MockAlphaRegionNetworkFirewallPolicies) PatchRule(ctx context.Context, key *meta.Key, arg0 *computealpha.FirewallPolicyRule, options ...Option) error
PatchRule is a mock for the corresponding method.
func (*MockAlphaRegionNetworkFirewallPolicies) RemoveAssociation ¶ added in v1.17.0
func (m *MockAlphaRegionNetworkFirewallPolicies) RemoveAssociation(ctx context.Context, key *meta.Key, options ...Option) error
RemoveAssociation is a mock for the corresponding method.
func (*MockAlphaRegionNetworkFirewallPolicies) RemoveRule ¶ added in v1.17.0
func (m *MockAlphaRegionNetworkFirewallPolicies) RemoveRule(ctx context.Context, key *meta.Key, options ...Option) error
RemoveRule is a mock for the corresponding method.
func (*MockAlphaRegionNetworkFirewallPolicies) SetIamPolicy ¶ added in v1.17.0
func (m *MockAlphaRegionNetworkFirewallPolicies) SetIamPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.RegionSetPolicyRequest, options ...Option) (*computealpha.Policy, error)
SetIamPolicy is a mock for the corresponding method.
func (*MockAlphaRegionNetworkFirewallPolicies) TestIamPermissions ¶ added in v1.17.0
func (m *MockAlphaRegionNetworkFirewallPolicies) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computealpha.TestPermissionsRequest, options ...Option) (*computealpha.TestPermissionsResponse, error)
TestIamPermissions is a mock for the corresponding method.
type MockAlphaRegionSslCertificates ¶
type MockAlphaRegionSslCertificates struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionSslCertificatesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionSslCertificates, options ...Option) (bool, *computealpha.SslCertificate, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaRegionSslCertificates, options ...Option) (bool, []*computealpha.SslCertificate, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.SslCertificate, m *MockAlphaRegionSslCertificates, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionSslCertificates, options ...Option) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaRegionSslCertificates is the mock for RegionSslCertificates.
func NewMockAlphaRegionSslCertificates ¶
func NewMockAlphaRegionSslCertificates(pr ProjectRouter, objs map[meta.Key]*MockRegionSslCertificatesObj) *MockAlphaRegionSslCertificates
NewMockAlphaRegionSslCertificates returns a new mock for RegionSslCertificates.
func (*MockAlphaRegionSslCertificates) Delete ¶
func (m *MockAlphaRegionSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockAlphaRegionSslCertificates) Get ¶
func (m *MockAlphaRegionSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.SslCertificate, error)
Get returns the object from the mock.
func (*MockAlphaRegionSslCertificates) Insert ¶
func (m *MockAlphaRegionSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computealpha.SslCertificate, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaRegionSslCertificates) List ¶
func (m *MockAlphaRegionSslCertificates) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.SslCertificate, error)
List all of the objects in the mock in the given region.
func (*MockAlphaRegionSslCertificates) Obj ¶
func (m *MockAlphaRegionSslCertificates) Obj(o *computealpha.SslCertificate) *MockRegionSslCertificatesObj
Obj wraps the object for use in the mock.
type MockAlphaRegionTargetHttpProxies ¶
type MockAlphaRegionTargetHttpProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionTargetHttpProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionTargetHttpProxies, options ...Option) (bool, *computealpha.TargetHttpProxy, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaRegionTargetHttpProxies, options ...Option) (bool, []*computealpha.TargetHttpProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpProxy, m *MockAlphaRegionTargetHttpProxies, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionTargetHttpProxies, options ...Option) (bool, error) SetUrlMapHook func(context.Context, *meta.Key, *computealpha.UrlMapReference, *MockAlphaRegionTargetHttpProxies, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaRegionTargetHttpProxies is the mock for RegionTargetHttpProxies.
func NewMockAlphaRegionTargetHttpProxies ¶
func NewMockAlphaRegionTargetHttpProxies(pr ProjectRouter, objs map[meta.Key]*MockRegionTargetHttpProxiesObj) *MockAlphaRegionTargetHttpProxies
NewMockAlphaRegionTargetHttpProxies returns a new mock for RegionTargetHttpProxies.
func (*MockAlphaRegionTargetHttpProxies) Delete ¶
func (m *MockAlphaRegionTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockAlphaRegionTargetHttpProxies) Get ¶
func (m *MockAlphaRegionTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetHttpProxy, error)
Get returns the object from the mock.
func (*MockAlphaRegionTargetHttpProxies) Insert ¶
func (m *MockAlphaRegionTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpProxy, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaRegionTargetHttpProxies) List ¶
func (m *MockAlphaRegionTargetHttpProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.TargetHttpProxy, error)
List all of the objects in the mock in the given region.
func (*MockAlphaRegionTargetHttpProxies) Obj ¶
func (m *MockAlphaRegionTargetHttpProxies) Obj(o *computealpha.TargetHttpProxy) *MockRegionTargetHttpProxiesObj
Obj wraps the object for use in the mock.
func (*MockAlphaRegionTargetHttpProxies) SetUrlMap ¶
func (m *MockAlphaRegionTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computealpha.UrlMapReference, options ...Option) error
SetUrlMap is a mock for the corresponding method.
type MockAlphaRegionTargetHttpsProxies ¶
type MockAlphaRegionTargetHttpsProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionTargetHttpsProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionTargetHttpsProxies, options ...Option) (bool, *computealpha.TargetHttpsProxy, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaRegionTargetHttpsProxies, options ...Option) (bool, []*computealpha.TargetHttpsProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpsProxy, m *MockAlphaRegionTargetHttpsProxies, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionTargetHttpsProxies, options ...Option) (bool, error) PatchHook func(context.Context, *meta.Key, *computealpha.TargetHttpsProxy, *MockAlphaRegionTargetHttpsProxies, ...Option) error SetSslCertificatesHook func(context.Context, *meta.Key, *computealpha.RegionTargetHttpsProxiesSetSslCertificatesRequest, *MockAlphaRegionTargetHttpsProxies, ...Option) error SetUrlMapHook func(context.Context, *meta.Key, *computealpha.UrlMapReference, *MockAlphaRegionTargetHttpsProxies, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaRegionTargetHttpsProxies is the mock for RegionTargetHttpsProxies.
func NewMockAlphaRegionTargetHttpsProxies ¶
func NewMockAlphaRegionTargetHttpsProxies(pr ProjectRouter, objs map[meta.Key]*MockRegionTargetHttpsProxiesObj) *MockAlphaRegionTargetHttpsProxies
NewMockAlphaRegionTargetHttpsProxies returns a new mock for RegionTargetHttpsProxies.
func (*MockAlphaRegionTargetHttpsProxies) Delete ¶
func (m *MockAlphaRegionTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockAlphaRegionTargetHttpsProxies) Get ¶
func (m *MockAlphaRegionTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetHttpsProxy, error)
Get returns the object from the mock.
func (*MockAlphaRegionTargetHttpsProxies) Insert ¶
func (m *MockAlphaRegionTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpsProxy, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaRegionTargetHttpsProxies) List ¶
func (m *MockAlphaRegionTargetHttpsProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.TargetHttpsProxy, error)
List all of the objects in the mock in the given region.
func (*MockAlphaRegionTargetHttpsProxies) Obj ¶
func (m *MockAlphaRegionTargetHttpsProxies) Obj(o *computealpha.TargetHttpsProxy) *MockRegionTargetHttpsProxiesObj
Obj wraps the object for use in the mock.
func (*MockAlphaRegionTargetHttpsProxies) Patch ¶ added in v1.25.0
func (m *MockAlphaRegionTargetHttpsProxies) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.TargetHttpsProxy, options ...Option) error
Patch is a mock for the corresponding method.
func (*MockAlphaRegionTargetHttpsProxies) SetSslCertificates ¶
func (m *MockAlphaRegionTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *computealpha.RegionTargetHttpsProxiesSetSslCertificatesRequest, options ...Option) error
SetSslCertificates is a mock for the corresponding method.
func (*MockAlphaRegionTargetHttpsProxies) SetUrlMap ¶
func (m *MockAlphaRegionTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computealpha.UrlMapReference, options ...Option) error
SetUrlMap is a mock for the corresponding method.
type MockAlphaRegionUrlMaps ¶
type MockAlphaRegionUrlMaps struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionUrlMapsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionUrlMaps, options ...Option) (bool, *computealpha.UrlMap, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaRegionUrlMaps, options ...Option) (bool, []*computealpha.UrlMap, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.UrlMap, m *MockAlphaRegionUrlMaps, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaRegionUrlMaps, options ...Option) (bool, error) UpdateHook func(context.Context, *meta.Key, *computealpha.UrlMap, *MockAlphaRegionUrlMaps, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaRegionUrlMaps is the mock for RegionUrlMaps.
func NewMockAlphaRegionUrlMaps ¶
func NewMockAlphaRegionUrlMaps(pr ProjectRouter, objs map[meta.Key]*MockRegionUrlMapsObj) *MockAlphaRegionUrlMaps
NewMockAlphaRegionUrlMaps returns a new mock for RegionUrlMaps.
func (*MockAlphaRegionUrlMaps) Delete ¶
func (m *MockAlphaRegionUrlMaps) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockAlphaRegionUrlMaps) Get ¶
func (m *MockAlphaRegionUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.UrlMap, error)
Get returns the object from the mock.
func (*MockAlphaRegionUrlMaps) Insert ¶
func (m *MockAlphaRegionUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computealpha.UrlMap, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaRegionUrlMaps) List ¶
func (m *MockAlphaRegionUrlMaps) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.UrlMap, error)
List all of the objects in the mock in the given region.
func (*MockAlphaRegionUrlMaps) Obj ¶
func (m *MockAlphaRegionUrlMaps) Obj(o *computealpha.UrlMap) *MockRegionUrlMapsObj
Obj wraps the object for use in the mock.
type MockAlphaRouters ¶ added in v1.17.0
type MockAlphaRouters struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRoutersObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error AggregatedListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaRouters, options ...Option) (bool, *computealpha.Router, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaRouters, options ...Option) (bool, []*computealpha.Router, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.Router, m *MockAlphaRouters, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaRouters, options ...Option) (bool, error) AggregatedListHook func(ctx context.Context, fl *filter.F, m *MockAlphaRouters, options ...Option) (bool, map[string][]*computealpha.Router, error) GetRouterStatusHook func(context.Context, *meta.Key, *MockAlphaRouters, ...Option) (*computealpha.RouterStatusResponse, error) PatchHook func(context.Context, *meta.Key, *computealpha.Router, *MockAlphaRouters, ...Option) error PreviewHook func(context.Context, *meta.Key, *computealpha.Router, *MockAlphaRouters, ...Option) (*computealpha.RoutersPreviewResponse, error) TestIamPermissionsHook func(context.Context, *meta.Key, *computealpha.TestPermissionsRequest, *MockAlphaRouters, ...Option) (*computealpha.TestPermissionsResponse, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaRouters is the mock for Routers.
func NewMockAlphaRouters ¶ added in v1.17.0
func NewMockAlphaRouters(pr ProjectRouter, objs map[meta.Key]*MockRoutersObj) *MockAlphaRouters
NewMockAlphaRouters returns a new mock for Routers.
func (*MockAlphaRouters) AggregatedList ¶ added in v1.17.0
func (m *MockAlphaRouters) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computealpha.Router, error)
AggregatedList is a mock for AggregatedList.
func (*MockAlphaRouters) Get ¶ added in v1.17.0
func (m *MockAlphaRouters) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Router, error)
Get returns the object from the mock.
func (*MockAlphaRouters) GetRouterStatus ¶ added in v1.17.0
func (m *MockAlphaRouters) GetRouterStatus(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.RouterStatusResponse, error)
GetRouterStatus is a mock for the corresponding method.
func (*MockAlphaRouters) Insert ¶ added in v1.17.0
func (m *MockAlphaRouters) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Router, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaRouters) List ¶ added in v1.17.0
func (m *MockAlphaRouters) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.Router, error)
List all of the objects in the mock in the given region.
func (*MockAlphaRouters) Obj ¶ added in v1.17.0
func (m *MockAlphaRouters) Obj(o *computealpha.Router) *MockRoutersObj
Obj wraps the object for use in the mock.
func (*MockAlphaRouters) Patch ¶ added in v1.17.0
func (m *MockAlphaRouters) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.Router, options ...Option) error
Patch is a mock for the corresponding method.
func (*MockAlphaRouters) Preview ¶ added in v1.17.0
func (m *MockAlphaRouters) Preview(ctx context.Context, key *meta.Key, arg0 *computealpha.Router, options ...Option) (*computealpha.RoutersPreviewResponse, error)
Preview is a mock for the corresponding method.
func (*MockAlphaRouters) TestIamPermissions ¶ added in v1.17.0
func (m *MockAlphaRouters) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computealpha.TestPermissionsRequest, options ...Option) (*computealpha.TestPermissionsResponse, error)
TestIamPermissions is a mock for the corresponding method.
type MockAlphaServiceAttachments ¶
type MockAlphaServiceAttachments struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockServiceAttachmentsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaServiceAttachments, options ...Option) (bool, *computealpha.ServiceAttachment, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaServiceAttachments, options ...Option) (bool, []*computealpha.ServiceAttachment, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.ServiceAttachment, m *MockAlphaServiceAttachments, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaServiceAttachments, options ...Option) (bool, error) PatchHook func(context.Context, *meta.Key, *computealpha.ServiceAttachment, *MockAlphaServiceAttachments, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaServiceAttachments is the mock for ServiceAttachments.
func NewMockAlphaServiceAttachments ¶
func NewMockAlphaServiceAttachments(pr ProjectRouter, objs map[meta.Key]*MockServiceAttachmentsObj) *MockAlphaServiceAttachments
NewMockAlphaServiceAttachments returns a new mock for ServiceAttachments.
func (*MockAlphaServiceAttachments) Delete ¶
func (m *MockAlphaServiceAttachments) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockAlphaServiceAttachments) Get ¶
func (m *MockAlphaServiceAttachments) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.ServiceAttachment, error)
Get returns the object from the mock.
func (*MockAlphaServiceAttachments) Insert ¶
func (m *MockAlphaServiceAttachments) Insert(ctx context.Context, key *meta.Key, obj *computealpha.ServiceAttachment, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaServiceAttachments) List ¶
func (m *MockAlphaServiceAttachments) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.ServiceAttachment, error)
List all of the objects in the mock in the given region.
func (*MockAlphaServiceAttachments) Obj ¶
func (m *MockAlphaServiceAttachments) Obj(o *computealpha.ServiceAttachment) *MockServiceAttachmentsObj
Obj wraps the object for use in the mock.
func (*MockAlphaServiceAttachments) Patch ¶ added in v1.15.0
func (m *MockAlphaServiceAttachments) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.ServiceAttachment, options ...Option) error
Patch is a mock for the corresponding method.
type MockAlphaSslCertificates ¶
type MockAlphaSslCertificates struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockSslCertificatesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaSslCertificates, options ...Option) (bool, *computealpha.SslCertificate, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaSslCertificates, options ...Option) (bool, []*computealpha.SslCertificate, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.SslCertificate, m *MockAlphaSslCertificates, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaSslCertificates, options ...Option) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaSslCertificates is the mock for SslCertificates.
func NewMockAlphaSslCertificates ¶
func NewMockAlphaSslCertificates(pr ProjectRouter, objs map[meta.Key]*MockSslCertificatesObj) *MockAlphaSslCertificates
NewMockAlphaSslCertificates returns a new mock for SslCertificates.
func (*MockAlphaSslCertificates) Delete ¶
func (m *MockAlphaSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockAlphaSslCertificates) Get ¶
func (m *MockAlphaSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.SslCertificate, error)
Get returns the object from the mock.
func (*MockAlphaSslCertificates) Insert ¶
func (m *MockAlphaSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computealpha.SslCertificate, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaSslCertificates) List ¶
func (m *MockAlphaSslCertificates) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.SslCertificate, error)
List all of the objects in the mock.
func (*MockAlphaSslCertificates) Obj ¶
func (m *MockAlphaSslCertificates) Obj(o *computealpha.SslCertificate) *MockSslCertificatesObj
Obj wraps the object for use in the mock.
type MockAlphaSubnetworks ¶
type MockAlphaSubnetworks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockSubnetworksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error ListUsableError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaSubnetworks, options ...Option) (bool, *computealpha.Subnetwork, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockAlphaSubnetworks, options ...Option) (bool, []*computealpha.Subnetwork, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.Subnetwork, m *MockAlphaSubnetworks, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaSubnetworks, options ...Option) (bool, error) ListUsableHook func(ctx context.Context, fl *filter.F, m *MockAlphaSubnetworks, options ...Option) (bool, []*computealpha.UsableSubnetwork, error) PatchHook func(context.Context, *meta.Key, *computealpha.Subnetwork, *MockAlphaSubnetworks, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaSubnetworks is the mock for Subnetworks.
func NewMockAlphaSubnetworks ¶
func NewMockAlphaSubnetworks(pr ProjectRouter, objs map[meta.Key]*MockSubnetworksObj) *MockAlphaSubnetworks
NewMockAlphaSubnetworks returns a new mock for Subnetworks.
func (*MockAlphaSubnetworks) Get ¶
func (m *MockAlphaSubnetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.Subnetwork, error)
Get returns the object from the mock.
func (*MockAlphaSubnetworks) Insert ¶
func (m *MockAlphaSubnetworks) Insert(ctx context.Context, key *meta.Key, obj *computealpha.Subnetwork, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaSubnetworks) List ¶
func (m *MockAlphaSubnetworks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computealpha.Subnetwork, error)
List all of the objects in the mock in the given region.
func (*MockAlphaSubnetworks) ListUsable ¶ added in v1.16.0
func (m *MockAlphaSubnetworks) ListUsable(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.UsableSubnetwork, error)
List all of the objects in the mock.
func (*MockAlphaSubnetworks) Obj ¶
func (m *MockAlphaSubnetworks) Obj(o *computealpha.Subnetwork) *MockSubnetworksObj
Obj wraps the object for use in the mock.
func (*MockAlphaSubnetworks) Patch ¶ added in v1.17.0
func (m *MockAlphaSubnetworks) Patch(ctx context.Context, key *meta.Key, arg0 *computealpha.Subnetwork, options ...Option) error
Patch is a mock for the corresponding method.
type MockAlphaTargetHttpProxies ¶
type MockAlphaTargetHttpProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockTargetHttpProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaTargetHttpProxies, options ...Option) (bool, *computealpha.TargetHttpProxy, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaTargetHttpProxies, options ...Option) (bool, []*computealpha.TargetHttpProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpProxy, m *MockAlphaTargetHttpProxies, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaTargetHttpProxies, options ...Option) (bool, error) SetUrlMapHook func(context.Context, *meta.Key, *computealpha.UrlMapReference, *MockAlphaTargetHttpProxies, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaTargetHttpProxies is the mock for TargetHttpProxies.
func NewMockAlphaTargetHttpProxies ¶
func NewMockAlphaTargetHttpProxies(pr ProjectRouter, objs map[meta.Key]*MockTargetHttpProxiesObj) *MockAlphaTargetHttpProxies
NewMockAlphaTargetHttpProxies returns a new mock for TargetHttpProxies.
func (*MockAlphaTargetHttpProxies) Delete ¶
func (m *MockAlphaTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockAlphaTargetHttpProxies) Get ¶
func (m *MockAlphaTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetHttpProxy, error)
Get returns the object from the mock.
func (*MockAlphaTargetHttpProxies) Insert ¶
func (m *MockAlphaTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpProxy, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaTargetHttpProxies) List ¶
func (m *MockAlphaTargetHttpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.TargetHttpProxy, error)
List all of the objects in the mock.
func (*MockAlphaTargetHttpProxies) Obj ¶
func (m *MockAlphaTargetHttpProxies) Obj(o *computealpha.TargetHttpProxy) *MockTargetHttpProxiesObj
Obj wraps the object for use in the mock.
func (*MockAlphaTargetHttpProxies) SetUrlMap ¶
func (m *MockAlphaTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computealpha.UrlMapReference, options ...Option) error
SetUrlMap is a mock for the corresponding method.
type MockAlphaTargetHttpsProxies ¶
type MockAlphaTargetHttpsProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockTargetHttpsProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaTargetHttpsProxies, options ...Option) (bool, *computealpha.TargetHttpsProxy, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaTargetHttpsProxies, options ...Option) (bool, []*computealpha.TargetHttpsProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpsProxy, m *MockAlphaTargetHttpsProxies, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaTargetHttpsProxies, options ...Option) (bool, error) SetCertificateMapHook func(context.Context, *meta.Key, *computealpha.TargetHttpsProxiesSetCertificateMapRequest, *MockAlphaTargetHttpsProxies, ...Option) error SetSslCertificatesHook func(context.Context, *meta.Key, *computealpha.TargetHttpsProxiesSetSslCertificatesRequest, *MockAlphaTargetHttpsProxies, ...Option) error SetSslPolicyHook func(context.Context, *meta.Key, *computealpha.SslPolicyReference, *MockAlphaTargetHttpsProxies, ...Option) error SetUrlMapHook func(context.Context, *meta.Key, *computealpha.UrlMapReference, *MockAlphaTargetHttpsProxies, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaTargetHttpsProxies is the mock for TargetHttpsProxies.
func NewMockAlphaTargetHttpsProxies ¶
func NewMockAlphaTargetHttpsProxies(pr ProjectRouter, objs map[meta.Key]*MockTargetHttpsProxiesObj) *MockAlphaTargetHttpsProxies
NewMockAlphaTargetHttpsProxies returns a new mock for TargetHttpsProxies.
func (*MockAlphaTargetHttpsProxies) Delete ¶
func (m *MockAlphaTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockAlphaTargetHttpsProxies) Get ¶
func (m *MockAlphaTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetHttpsProxy, error)
Get returns the object from the mock.
func (*MockAlphaTargetHttpsProxies) Insert ¶
func (m *MockAlphaTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetHttpsProxy, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaTargetHttpsProxies) List ¶
func (m *MockAlphaTargetHttpsProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.TargetHttpsProxy, error)
List all of the objects in the mock.
func (*MockAlphaTargetHttpsProxies) Obj ¶
func (m *MockAlphaTargetHttpsProxies) Obj(o *computealpha.TargetHttpsProxy) *MockTargetHttpsProxiesObj
Obj wraps the object for use in the mock.
func (*MockAlphaTargetHttpsProxies) SetCertificateMap ¶ added in v1.17.0
func (m *MockAlphaTargetHttpsProxies) SetCertificateMap(ctx context.Context, key *meta.Key, arg0 *computealpha.TargetHttpsProxiesSetCertificateMapRequest, options ...Option) error
SetCertificateMap is a mock for the corresponding method.
func (*MockAlphaTargetHttpsProxies) SetSslCertificates ¶
func (m *MockAlphaTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *computealpha.TargetHttpsProxiesSetSslCertificatesRequest, options ...Option) error
SetSslCertificates is a mock for the corresponding method.
func (*MockAlphaTargetHttpsProxies) SetSslPolicy ¶
func (m *MockAlphaTargetHttpsProxies) SetSslPolicy(ctx context.Context, key *meta.Key, arg0 *computealpha.SslPolicyReference, options ...Option) error
SetSslPolicy is a mock for the corresponding method.
func (*MockAlphaTargetHttpsProxies) SetUrlMap ¶
func (m *MockAlphaTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computealpha.UrlMapReference, options ...Option) error
SetUrlMap is a mock for the corresponding method.
type MockAlphaTargetTcpProxies ¶
type MockAlphaTargetTcpProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockTargetTcpProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaTargetTcpProxies, options ...Option) (bool, *computealpha.TargetTcpProxy, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaTargetTcpProxies, options ...Option) (bool, []*computealpha.TargetTcpProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.TargetTcpProxy, m *MockAlphaTargetTcpProxies, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaTargetTcpProxies, options ...Option) (bool, error) SetBackendServiceHook func(context.Context, *meta.Key, *computealpha.TargetTcpProxiesSetBackendServiceRequest, *MockAlphaTargetTcpProxies, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaTargetTcpProxies is the mock for TargetTcpProxies.
func NewMockAlphaTargetTcpProxies ¶
func NewMockAlphaTargetTcpProxies(pr ProjectRouter, objs map[meta.Key]*MockTargetTcpProxiesObj) *MockAlphaTargetTcpProxies
NewMockAlphaTargetTcpProxies returns a new mock for TargetTcpProxies.
func (*MockAlphaTargetTcpProxies) Delete ¶
func (m *MockAlphaTargetTcpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockAlphaTargetTcpProxies) Get ¶
func (m *MockAlphaTargetTcpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.TargetTcpProxy, error)
Get returns the object from the mock.
func (*MockAlphaTargetTcpProxies) Insert ¶
func (m *MockAlphaTargetTcpProxies) Insert(ctx context.Context, key *meta.Key, obj *computealpha.TargetTcpProxy, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaTargetTcpProxies) List ¶
func (m *MockAlphaTargetTcpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.TargetTcpProxy, error)
List all of the objects in the mock.
func (*MockAlphaTargetTcpProxies) Obj ¶
func (m *MockAlphaTargetTcpProxies) Obj(o *computealpha.TargetTcpProxy) *MockTargetTcpProxiesObj
Obj wraps the object for use in the mock.
func (*MockAlphaTargetTcpProxies) SetBackendService ¶
func (m *MockAlphaTargetTcpProxies) SetBackendService(ctx context.Context, key *meta.Key, arg0 *computealpha.TargetTcpProxiesSetBackendServiceRequest, options ...Option) error
SetBackendService is a mock for the corresponding method.
type MockAlphaUrlMaps ¶
type MockAlphaUrlMaps struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockUrlMapsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockAlphaUrlMaps, options ...Option) (bool, *computealpha.UrlMap, error) ListHook func(ctx context.Context, fl *filter.F, m *MockAlphaUrlMaps, options ...Option) (bool, []*computealpha.UrlMap, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computealpha.UrlMap, m *MockAlphaUrlMaps, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockAlphaUrlMaps, options ...Option) (bool, error) UpdateHook func(context.Context, *meta.Key, *computealpha.UrlMap, *MockAlphaUrlMaps, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockAlphaUrlMaps is the mock for UrlMaps.
func NewMockAlphaUrlMaps ¶
func NewMockAlphaUrlMaps(pr ProjectRouter, objs map[meta.Key]*MockUrlMapsObj) *MockAlphaUrlMaps
NewMockAlphaUrlMaps returns a new mock for UrlMaps.
func (*MockAlphaUrlMaps) Get ¶
func (m *MockAlphaUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computealpha.UrlMap, error)
Get returns the object from the mock.
func (*MockAlphaUrlMaps) Insert ¶
func (m *MockAlphaUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computealpha.UrlMap, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockAlphaUrlMaps) List ¶
func (m *MockAlphaUrlMaps) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computealpha.UrlMap, error)
List all of the objects in the mock.
func (*MockAlphaUrlMaps) Obj ¶
func (m *MockAlphaUrlMaps) Obj(o *computealpha.UrlMap) *MockUrlMapsObj
Obj wraps the object for use in the mock.
type MockBackendServices ¶
type MockBackendServices struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockBackendServicesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error AggregatedListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBackendServices, options ...Option) (bool, *computega.BackendService, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBackendServices, options ...Option) (bool, []*computega.BackendService, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.BackendService, m *MockBackendServices, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBackendServices, options ...Option) (bool, error) AggregatedListHook func(ctx context.Context, fl *filter.F, m *MockBackendServices, options ...Option) (bool, map[string][]*computega.BackendService, error) AddSignedUrlKeyHook func(context.Context, *meta.Key, *computega.SignedUrlKey, *MockBackendServices, ...Option) error DeleteSignedUrlKeyHook func(context.Context, *meta.Key, string, *MockBackendServices, ...Option) error GetHealthHook func(context.Context, *meta.Key, *computega.ResourceGroupReference, *MockBackendServices, ...Option) (*computega.BackendServiceGroupHealth, error) PatchHook func(context.Context, *meta.Key, *computega.BackendService, *MockBackendServices, ...Option) error SetSecurityPolicyHook func(context.Context, *meta.Key, *computega.SecurityPolicyReference, *MockBackendServices, ...Option) error UpdateHook func(context.Context, *meta.Key, *computega.BackendService, *MockBackendServices, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBackendServices is the mock for BackendServices.
func NewMockBackendServices ¶
func NewMockBackendServices(pr ProjectRouter, objs map[meta.Key]*MockBackendServicesObj) *MockBackendServices
NewMockBackendServices returns a new mock for BackendServices.
func (*MockBackendServices) AddSignedUrlKey ¶ added in v1.18.0
func (m *MockBackendServices) AddSignedUrlKey(ctx context.Context, key *meta.Key, arg0 *computega.SignedUrlKey, options ...Option) error
AddSignedUrlKey is a mock for the corresponding method.
func (*MockBackendServices) AggregatedList ¶ added in v1.16.0
func (m *MockBackendServices) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computega.BackendService, error)
AggregatedList is a mock for AggregatedList.
func (*MockBackendServices) DeleteSignedUrlKey ¶ added in v1.18.0
func (m *MockBackendServices) DeleteSignedUrlKey(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
DeleteSignedUrlKey is a mock for the corresponding method.
func (*MockBackendServices) Get ¶
func (m *MockBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.BackendService, error)
Get returns the object from the mock.
func (*MockBackendServices) GetHealth ¶
func (m *MockBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *computega.ResourceGroupReference, options ...Option) (*computega.BackendServiceGroupHealth, error)
GetHealth is a mock for the corresponding method.
func (*MockBackendServices) Insert ¶
func (m *MockBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computega.BackendService, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBackendServices) List ¶
func (m *MockBackendServices) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.BackendService, error)
List all of the objects in the mock.
func (*MockBackendServices) Obj ¶
func (m *MockBackendServices) Obj(o *computega.BackendService) *MockBackendServicesObj
Obj wraps the object for use in the mock.
func (*MockBackendServices) Patch ¶
func (m *MockBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computega.BackendService, options ...Option) error
Patch is a mock for the corresponding method.
func (*MockBackendServices) SetSecurityPolicy ¶
func (m *MockBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computega.SecurityPolicyReference, options ...Option) error
SetSecurityPolicy is a mock for the corresponding method.
type MockBackendServicesObj ¶
type MockBackendServicesObj struct {
Obj interface{}
}
MockBackendServicesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockBackendServicesObj) ToAlpha ¶
func (m *MockBackendServicesObj) ToAlpha() *computealpha.BackendService
ToAlpha retrieves the given version of the object.
func (*MockBackendServicesObj) ToBeta ¶
func (m *MockBackendServicesObj) ToBeta() *computebeta.BackendService
ToBeta retrieves the given version of the object.
func (*MockBackendServicesObj) ToGA ¶
func (m *MockBackendServicesObj) ToGA() *computega.BackendService
ToGA retrieves the given version of the object.
type MockBetaAddresses ¶
type MockBetaAddresses struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockAddressesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error AggregatedListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaAddresses, options ...Option) (bool, *computebeta.Address, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaAddresses, options ...Option) (bool, []*computebeta.Address, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.Address, m *MockBetaAddresses, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaAddresses, options ...Option) (bool, error) AggregatedListHook func(ctx context.Context, fl *filter.F, m *MockBetaAddresses, options ...Option) (bool, map[string][]*computebeta.Address, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaAddresses is the mock for Addresses.
func NewMockBetaAddresses ¶
func NewMockBetaAddresses(pr ProjectRouter, objs map[meta.Key]*MockAddressesObj) *MockBetaAddresses
NewMockBetaAddresses returns a new mock for Addresses.
func (*MockBetaAddresses) AggregatedList ¶
func (m *MockBetaAddresses) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computebeta.Address, error)
AggregatedList is a mock for AggregatedList.
func (*MockBetaAddresses) Get ¶
func (m *MockBetaAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Address, error)
Get returns the object from the mock.
func (*MockBetaAddresses) Insert ¶
func (m *MockBetaAddresses) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Address, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaAddresses) List ¶
func (m *MockBetaAddresses) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.Address, error)
List all of the objects in the mock in the given region.
func (*MockBetaAddresses) Obj ¶
func (m *MockBetaAddresses) Obj(o *computebeta.Address) *MockAddressesObj
Obj wraps the object for use in the mock.
type MockBetaBackendServices ¶
type MockBetaBackendServices struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockBackendServicesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error AggregatedListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaBackendServices, options ...Option) (bool, *computebeta.BackendService, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaBackendServices, options ...Option) (bool, []*computebeta.BackendService, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.BackendService, m *MockBetaBackendServices, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaBackendServices, options ...Option) (bool, error) AggregatedListHook func(ctx context.Context, fl *filter.F, m *MockBetaBackendServices, options ...Option) (bool, map[string][]*computebeta.BackendService, error) AddSignedUrlKeyHook func(context.Context, *meta.Key, *computebeta.SignedUrlKey, *MockBetaBackendServices, ...Option) error DeleteSignedUrlKeyHook func(context.Context, *meta.Key, string, *MockBetaBackendServices, ...Option) error PatchHook func(context.Context, *meta.Key, *computebeta.BackendService, *MockBetaBackendServices, ...Option) error SetSecurityPolicyHook func(context.Context, *meta.Key, *computebeta.SecurityPolicyReference, *MockBetaBackendServices, ...Option) error UpdateHook func(context.Context, *meta.Key, *computebeta.BackendService, *MockBetaBackendServices, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaBackendServices is the mock for BackendServices.
func NewMockBetaBackendServices ¶
func NewMockBetaBackendServices(pr ProjectRouter, objs map[meta.Key]*MockBackendServicesObj) *MockBetaBackendServices
NewMockBetaBackendServices returns a new mock for BackendServices.
func (*MockBetaBackendServices) AddSignedUrlKey ¶ added in v1.18.0
func (m *MockBetaBackendServices) AddSignedUrlKey(ctx context.Context, key *meta.Key, arg0 *computebeta.SignedUrlKey, options ...Option) error
AddSignedUrlKey is a mock for the corresponding method.
func (*MockBetaBackendServices) AggregatedList ¶ added in v1.16.0
func (m *MockBetaBackendServices) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computebeta.BackendService, error)
AggregatedList is a mock for AggregatedList.
func (*MockBetaBackendServices) Delete ¶
func (m *MockBetaBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockBetaBackendServices) DeleteSignedUrlKey ¶ added in v1.18.0
func (m *MockBetaBackendServices) DeleteSignedUrlKey(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
DeleteSignedUrlKey is a mock for the corresponding method.
func (*MockBetaBackendServices) Get ¶
func (m *MockBetaBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.BackendService, error)
Get returns the object from the mock.
func (*MockBetaBackendServices) Insert ¶
func (m *MockBetaBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computebeta.BackendService, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaBackendServices) List ¶
func (m *MockBetaBackendServices) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.BackendService, error)
List all of the objects in the mock.
func (*MockBetaBackendServices) Obj ¶
func (m *MockBetaBackendServices) Obj(o *computebeta.BackendService) *MockBackendServicesObj
Obj wraps the object for use in the mock.
func (*MockBetaBackendServices) Patch ¶ added in v1.22.0
func (m *MockBetaBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.BackendService, options ...Option) error
Patch is a mock for the corresponding method.
func (*MockBetaBackendServices) SetSecurityPolicy ¶
func (m *MockBetaBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computebeta.SecurityPolicyReference, options ...Option) error
SetSecurityPolicy is a mock for the corresponding method.
func (*MockBetaBackendServices) Update ¶
func (m *MockBetaBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.BackendService, options ...Option) error
Update is a mock for the corresponding method.
type MockBetaFirewalls ¶
type MockBetaFirewalls struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockFirewallsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaFirewalls, options ...Option) (bool, *computebeta.Firewall, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaFirewalls, options ...Option) (bool, []*computebeta.Firewall, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.Firewall, m *MockBetaFirewalls, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaFirewalls, options ...Option) (bool, error) PatchHook func(context.Context, *meta.Key, *computebeta.Firewall, *MockBetaFirewalls, ...Option) error UpdateHook func(context.Context, *meta.Key, *computebeta.Firewall, *MockBetaFirewalls, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaFirewalls is the mock for Firewalls.
func NewMockBetaFirewalls ¶
func NewMockBetaFirewalls(pr ProjectRouter, objs map[meta.Key]*MockFirewallsObj) *MockBetaFirewalls
NewMockBetaFirewalls returns a new mock for Firewalls.
func (*MockBetaFirewalls) Get ¶
func (m *MockBetaFirewalls) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Firewall, error)
Get returns the object from the mock.
func (*MockBetaFirewalls) Insert ¶
func (m *MockBetaFirewalls) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Firewall, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaFirewalls) List ¶
func (m *MockBetaFirewalls) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.Firewall, error)
List all of the objects in the mock.
func (*MockBetaFirewalls) Obj ¶
func (m *MockBetaFirewalls) Obj(o *computebeta.Firewall) *MockFirewallsObj
Obj wraps the object for use in the mock.
type MockBetaForwardingRules ¶
type MockBetaForwardingRules struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockForwardingRulesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaForwardingRules, options ...Option) (bool, *computebeta.ForwardingRule, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaForwardingRules, options ...Option) (bool, []*computebeta.ForwardingRule, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.ForwardingRule, m *MockBetaForwardingRules, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaForwardingRules, options ...Option) (bool, error) SetLabelsHook func(context.Context, *meta.Key, *computebeta.RegionSetLabelsRequest, *MockBetaForwardingRules, ...Option) error SetTargetHook func(context.Context, *meta.Key, *computebeta.TargetReference, *MockBetaForwardingRules, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaForwardingRules is the mock for ForwardingRules.
func NewMockBetaForwardingRules ¶
func NewMockBetaForwardingRules(pr ProjectRouter, objs map[meta.Key]*MockForwardingRulesObj) *MockBetaForwardingRules
NewMockBetaForwardingRules returns a new mock for ForwardingRules.
func (*MockBetaForwardingRules) Delete ¶
func (m *MockBetaForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockBetaForwardingRules) Get ¶
func (m *MockBetaForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.ForwardingRule, error)
Get returns the object from the mock.
func (*MockBetaForwardingRules) Insert ¶
func (m *MockBetaForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computebeta.ForwardingRule, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaForwardingRules) List ¶
func (m *MockBetaForwardingRules) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.ForwardingRule, error)
List all of the objects in the mock in the given region.
func (*MockBetaForwardingRules) Obj ¶
func (m *MockBetaForwardingRules) Obj(o *computebeta.ForwardingRule) *MockForwardingRulesObj
Obj wraps the object for use in the mock.
func (*MockBetaForwardingRules) SetLabels ¶ added in v1.19.0
func (m *MockBetaForwardingRules) SetLabels(ctx context.Context, key *meta.Key, arg0 *computebeta.RegionSetLabelsRequest, options ...Option) error
SetLabels is a mock for the corresponding method.
func (*MockBetaForwardingRules) SetTarget ¶
func (m *MockBetaForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *computebeta.TargetReference, options ...Option) error
SetTarget is a mock for the corresponding method.
type MockBetaGlobalAddresses ¶
type MockBetaGlobalAddresses struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockGlobalAddressesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaGlobalAddresses, options ...Option) (bool, *computebeta.Address, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaGlobalAddresses, options ...Option) (bool, []*computebeta.Address, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.Address, m *MockBetaGlobalAddresses, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaGlobalAddresses, options ...Option) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaGlobalAddresses is the mock for GlobalAddresses.
func NewMockBetaGlobalAddresses ¶
func NewMockBetaGlobalAddresses(pr ProjectRouter, objs map[meta.Key]*MockGlobalAddressesObj) *MockBetaGlobalAddresses
NewMockBetaGlobalAddresses returns a new mock for GlobalAddresses.
func (*MockBetaGlobalAddresses) Delete ¶
func (m *MockBetaGlobalAddresses) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockBetaGlobalAddresses) Get ¶
func (m *MockBetaGlobalAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Address, error)
Get returns the object from the mock.
func (*MockBetaGlobalAddresses) Insert ¶
func (m *MockBetaGlobalAddresses) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Address, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaGlobalAddresses) List ¶
func (m *MockBetaGlobalAddresses) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.Address, error)
List all of the objects in the mock.
func (*MockBetaGlobalAddresses) Obj ¶
func (m *MockBetaGlobalAddresses) Obj(o *computebeta.Address) *MockGlobalAddressesObj
Obj wraps the object for use in the mock.
type MockBetaGlobalForwardingRules ¶
type MockBetaGlobalForwardingRules struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockGlobalForwardingRulesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaGlobalForwardingRules, options ...Option) (bool, *computebeta.ForwardingRule, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaGlobalForwardingRules, options ...Option) (bool, []*computebeta.ForwardingRule, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.ForwardingRule, m *MockBetaGlobalForwardingRules, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaGlobalForwardingRules, options ...Option) (bool, error) SetLabelsHook func(context.Context, *meta.Key, *computebeta.GlobalSetLabelsRequest, *MockBetaGlobalForwardingRules, ...Option) error SetTargetHook func(context.Context, *meta.Key, *computebeta.TargetReference, *MockBetaGlobalForwardingRules, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaGlobalForwardingRules is the mock for GlobalForwardingRules.
func NewMockBetaGlobalForwardingRules ¶
func NewMockBetaGlobalForwardingRules(pr ProjectRouter, objs map[meta.Key]*MockGlobalForwardingRulesObj) *MockBetaGlobalForwardingRules
NewMockBetaGlobalForwardingRules returns a new mock for GlobalForwardingRules.
func (*MockBetaGlobalForwardingRules) Delete ¶
func (m *MockBetaGlobalForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockBetaGlobalForwardingRules) Get ¶
func (m *MockBetaGlobalForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.ForwardingRule, error)
Get returns the object from the mock.
func (*MockBetaGlobalForwardingRules) Insert ¶
func (m *MockBetaGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computebeta.ForwardingRule, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaGlobalForwardingRules) List ¶
func (m *MockBetaGlobalForwardingRules) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.ForwardingRule, error)
List all of the objects in the mock.
func (*MockBetaGlobalForwardingRules) Obj ¶
func (m *MockBetaGlobalForwardingRules) Obj(o *computebeta.ForwardingRule) *MockGlobalForwardingRulesObj
Obj wraps the object for use in the mock.
func (*MockBetaGlobalForwardingRules) SetLabels ¶ added in v1.19.0
func (m *MockBetaGlobalForwardingRules) SetLabels(ctx context.Context, key *meta.Key, arg0 *computebeta.GlobalSetLabelsRequest, options ...Option) error
SetLabels is a mock for the corresponding method.
func (*MockBetaGlobalForwardingRules) SetTarget ¶
func (m *MockBetaGlobalForwardingRules) SetTarget(ctx context.Context, key *meta.Key, arg0 *computebeta.TargetReference, options ...Option) error
SetTarget is a mock for the corresponding method.
type MockBetaGlobalNetworkEndpointGroups ¶ added in v1.25.0
type MockBetaGlobalNetworkEndpointGroups struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockGlobalNetworkEndpointGroupsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaGlobalNetworkEndpointGroups, options ...Option) (bool, *computebeta.NetworkEndpointGroup, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaGlobalNetworkEndpointGroups, options ...Option) (bool, []*computebeta.NetworkEndpointGroup, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.NetworkEndpointGroup, m *MockBetaGlobalNetworkEndpointGroups, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaGlobalNetworkEndpointGroups, options ...Option) (bool, error) AttachNetworkEndpointsHook func(context.Context, *meta.Key, *computebeta.GlobalNetworkEndpointGroupsAttachEndpointsRequest, *MockBetaGlobalNetworkEndpointGroups, ...Option) error DetachNetworkEndpointsHook func(context.Context, *meta.Key, *computebeta.GlobalNetworkEndpointGroupsDetachEndpointsRequest, *MockBetaGlobalNetworkEndpointGroups, ...Option) error ListNetworkEndpointsHook func(context.Context, *meta.Key, *filter.F, *MockBetaGlobalNetworkEndpointGroups, ...Option) ([]*computebeta.NetworkEndpointWithHealthStatus, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaGlobalNetworkEndpointGroups is the mock for GlobalNetworkEndpointGroups.
func NewMockBetaGlobalNetworkEndpointGroups ¶ added in v1.25.0
func NewMockBetaGlobalNetworkEndpointGroups(pr ProjectRouter, objs map[meta.Key]*MockGlobalNetworkEndpointGroupsObj) *MockBetaGlobalNetworkEndpointGroups
NewMockBetaGlobalNetworkEndpointGroups returns a new mock for GlobalNetworkEndpointGroups.
func (*MockBetaGlobalNetworkEndpointGroups) AttachNetworkEndpoints ¶ added in v1.25.0
func (m *MockBetaGlobalNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computebeta.GlobalNetworkEndpointGroupsAttachEndpointsRequest, options ...Option) error
AttachNetworkEndpoints is a mock for the corresponding method.
func (*MockBetaGlobalNetworkEndpointGroups) Delete ¶ added in v1.25.0
func (m *MockBetaGlobalNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockBetaGlobalNetworkEndpointGroups) DetachNetworkEndpoints ¶ added in v1.25.0
func (m *MockBetaGlobalNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computebeta.GlobalNetworkEndpointGroupsDetachEndpointsRequest, options ...Option) error
DetachNetworkEndpoints is a mock for the corresponding method.
func (*MockBetaGlobalNetworkEndpointGroups) Get ¶ added in v1.25.0
func (m *MockBetaGlobalNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.NetworkEndpointGroup, error)
Get returns the object from the mock.
func (*MockBetaGlobalNetworkEndpointGroups) Insert ¶ added in v1.25.0
func (m *MockBetaGlobalNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computebeta.NetworkEndpointGroup, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaGlobalNetworkEndpointGroups) List ¶ added in v1.25.0
func (m *MockBetaGlobalNetworkEndpointGroups) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointGroup, error)
List all of the objects in the mock.
func (*MockBetaGlobalNetworkEndpointGroups) ListNetworkEndpoints ¶ added in v1.25.0
func (m *MockBetaGlobalNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a mock for the corresponding method.
func (*MockBetaGlobalNetworkEndpointGroups) Obj ¶ added in v1.25.0
func (m *MockBetaGlobalNetworkEndpointGroups) Obj(o *computebeta.NetworkEndpointGroup) *MockGlobalNetworkEndpointGroupsObj
Obj wraps the object for use in the mock.
type MockBetaHealthChecks ¶
type MockBetaHealthChecks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockHealthChecksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaHealthChecks, options ...Option) (bool, *computebeta.HealthCheck, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaHealthChecks, options ...Option) (bool, []*computebeta.HealthCheck, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.HealthCheck, m *MockBetaHealthChecks, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaHealthChecks, options ...Option) (bool, error) UpdateHook func(context.Context, *meta.Key, *computebeta.HealthCheck, *MockBetaHealthChecks, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaHealthChecks is the mock for HealthChecks.
func NewMockBetaHealthChecks ¶
func NewMockBetaHealthChecks(pr ProjectRouter, objs map[meta.Key]*MockHealthChecksObj) *MockBetaHealthChecks
NewMockBetaHealthChecks returns a new mock for HealthChecks.
func (*MockBetaHealthChecks) Get ¶
func (m *MockBetaHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.HealthCheck, error)
Get returns the object from the mock.
func (*MockBetaHealthChecks) Insert ¶
func (m *MockBetaHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computebeta.HealthCheck, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaHealthChecks) List ¶
func (m *MockBetaHealthChecks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.HealthCheck, error)
List all of the objects in the mock.
func (*MockBetaHealthChecks) Obj ¶
func (m *MockBetaHealthChecks) Obj(o *computebeta.HealthCheck) *MockHealthChecksObj
Obj wraps the object for use in the mock.
func (*MockBetaHealthChecks) Update ¶
func (m *MockBetaHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.HealthCheck, options ...Option) error
Update is a mock for the corresponding method.
type MockBetaImages ¶ added in v1.17.0
type MockBetaImages struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockImagesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaImages, options ...Option) (bool, *computebeta.Image, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaImages, options ...Option) (bool, []*computebeta.Image, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.Image, m *MockBetaImages, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaImages, options ...Option) (bool, error) GetFromFamilyHook func(context.Context, *meta.Key, *MockBetaImages, ...Option) (*computebeta.Image, error) GetIamPolicyHook func(context.Context, *meta.Key, *MockBetaImages, ...Option) (*computebeta.Policy, error) PatchHook func(context.Context, *meta.Key, *computebeta.Image, *MockBetaImages, ...Option) error SetIamPolicyHook func(context.Context, *meta.Key, *computebeta.GlobalSetPolicyRequest, *MockBetaImages, ...Option) (*computebeta.Policy, error) SetLabelsHook func(context.Context, *meta.Key, *computebeta.GlobalSetLabelsRequest, *MockBetaImages, ...Option) error TestIamPermissionsHook func(context.Context, *meta.Key, *computebeta.TestPermissionsRequest, *MockBetaImages, ...Option) (*computebeta.TestPermissionsResponse, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaImages is the mock for Images.
func NewMockBetaImages ¶ added in v1.17.0
func NewMockBetaImages(pr ProjectRouter, objs map[meta.Key]*MockImagesObj) *MockBetaImages
NewMockBetaImages returns a new mock for Images.
func (*MockBetaImages) Get ¶ added in v1.17.0
func (m *MockBetaImages) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Image, error)
Get returns the object from the mock.
func (*MockBetaImages) GetFromFamily ¶ added in v1.17.0
func (m *MockBetaImages) GetFromFamily(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Image, error)
GetFromFamily is a mock for the corresponding method.
func (*MockBetaImages) GetIamPolicy ¶ added in v1.17.0
func (m *MockBetaImages) GetIamPolicy(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Policy, error)
GetIamPolicy is a mock for the corresponding method.
func (*MockBetaImages) Insert ¶ added in v1.17.0
func (m *MockBetaImages) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Image, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaImages) List ¶ added in v1.17.0
func (m *MockBetaImages) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.Image, error)
List all of the objects in the mock.
func (*MockBetaImages) Obj ¶ added in v1.17.0
func (m *MockBetaImages) Obj(o *computebeta.Image) *MockImagesObj
Obj wraps the object for use in the mock.
func (*MockBetaImages) Patch ¶ added in v1.17.0
func (m *MockBetaImages) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.Image, options ...Option) error
Patch is a mock for the corresponding method.
func (*MockBetaImages) SetIamPolicy ¶ added in v1.17.0
func (m *MockBetaImages) SetIamPolicy(ctx context.Context, key *meta.Key, arg0 *computebeta.GlobalSetPolicyRequest, options ...Option) (*computebeta.Policy, error)
SetIamPolicy is a mock for the corresponding method.
func (*MockBetaImages) SetLabels ¶ added in v1.17.0
func (m *MockBetaImages) SetLabels(ctx context.Context, key *meta.Key, arg0 *computebeta.GlobalSetLabelsRequest, options ...Option) error
SetLabels is a mock for the corresponding method.
func (*MockBetaImages) TestIamPermissions ¶ added in v1.17.0
func (m *MockBetaImages) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computebeta.TestPermissionsRequest, options ...Option) (*computebeta.TestPermissionsResponse, error)
TestIamPermissions is a mock for the corresponding method.
type MockBetaInstances ¶
type MockBetaInstances struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockInstancesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaInstances, options ...Option) (bool, *computebeta.Instance, error) ListHook func(ctx context.Context, zone string, fl *filter.F, m *MockBetaInstances, options ...Option) (bool, []*computebeta.Instance, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.Instance, m *MockBetaInstances, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaInstances, options ...Option) (bool, error) AttachDiskHook func(context.Context, *meta.Key, *computebeta.AttachedDisk, *MockBetaInstances, ...Option) error DetachDiskHook func(context.Context, *meta.Key, string, *MockBetaInstances, ...Option) error UpdateNetworkInterfaceHook func(context.Context, *meta.Key, string, *computebeta.NetworkInterface, *MockBetaInstances, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaInstances is the mock for Instances.
func NewMockBetaInstances ¶
func NewMockBetaInstances(pr ProjectRouter, objs map[meta.Key]*MockInstancesObj) *MockBetaInstances
NewMockBetaInstances returns a new mock for Instances.
func (*MockBetaInstances) AttachDisk ¶
func (m *MockBetaInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *computebeta.AttachedDisk, options ...Option) error
AttachDisk is a mock for the corresponding method.
func (*MockBetaInstances) DetachDisk ¶
func (m *MockBetaInstances) DetachDisk(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
DetachDisk is a mock for the corresponding method.
func (*MockBetaInstances) Get ¶
func (m *MockBetaInstances) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Instance, error)
Get returns the object from the mock.
func (*MockBetaInstances) Insert ¶
func (m *MockBetaInstances) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Instance, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaInstances) List ¶
func (m *MockBetaInstances) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computebeta.Instance, error)
List all of the objects in the mock in the given zone.
func (*MockBetaInstances) Obj ¶
func (m *MockBetaInstances) Obj(o *computebeta.Instance) *MockInstancesObj
Obj wraps the object for use in the mock.
func (*MockBetaInstances) UpdateNetworkInterface ¶
func (m *MockBetaInstances) UpdateNetworkInterface(ctx context.Context, key *meta.Key, arg0 string, arg1 *computebeta.NetworkInterface, options ...Option) error
UpdateNetworkInterface is a mock for the corresponding method.
type MockBetaMeshes ¶ added in v1.25.0
type MockBetaMeshes struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockMeshesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaMeshes, options ...Option) (bool, *networkservicesbeta.Mesh, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaMeshes, options ...Option) (bool, []*networkservicesbeta.Mesh, error) InsertHook func(ctx context.Context, key *meta.Key, obj *networkservicesbeta.Mesh, m *MockBetaMeshes, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaMeshes, options ...Option) (bool, error) PatchHook func(context.Context, *meta.Key, *networkservicesbeta.Mesh, *MockBetaMeshes, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaMeshes is the mock for Meshes.
func NewMockBetaMeshes ¶ added in v1.25.0
func NewMockBetaMeshes(pr ProjectRouter, objs map[meta.Key]*MockMeshesObj) *MockBetaMeshes
NewMockBetaMeshes returns a new mock for Meshes.
func (*MockBetaMeshes) Get ¶ added in v1.25.0
func (m *MockBetaMeshes) Get(ctx context.Context, key *meta.Key, options ...Option) (*networkservicesbeta.Mesh, error)
Get returns the object from the mock.
func (*MockBetaMeshes) Insert ¶ added in v1.25.0
func (m *MockBetaMeshes) Insert(ctx context.Context, key *meta.Key, obj *networkservicesbeta.Mesh, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaMeshes) List ¶ added in v1.25.0
func (m *MockBetaMeshes) List(ctx context.Context, fl *filter.F, options ...Option) ([]*networkservicesbeta.Mesh, error)
List all of the objects in the mock.
func (*MockBetaMeshes) Obj ¶ added in v1.25.0
func (m *MockBetaMeshes) Obj(o *networkservicesbeta.Mesh) *MockMeshesObj
Obj wraps the object for use in the mock.
type MockBetaNetworkEndpointGroups ¶
type MockBetaNetworkEndpointGroups struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockNetworkEndpointGroupsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error AggregatedListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaNetworkEndpointGroups, options ...Option) (bool, *computebeta.NetworkEndpointGroup, error) ListHook func(ctx context.Context, zone string, fl *filter.F, m *MockBetaNetworkEndpointGroups, options ...Option) (bool, []*computebeta.NetworkEndpointGroup, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.NetworkEndpointGroup, m *MockBetaNetworkEndpointGroups, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaNetworkEndpointGroups, options ...Option) (bool, error) AggregatedListHook func(ctx context.Context, fl *filter.F, m *MockBetaNetworkEndpointGroups, options ...Option) (bool, map[string][]*computebeta.NetworkEndpointGroup, error) AttachNetworkEndpointsHook func(context.Context, *meta.Key, *computebeta.NetworkEndpointGroupsAttachEndpointsRequest, *MockBetaNetworkEndpointGroups, ...Option) error DetachNetworkEndpointsHook func(context.Context, *meta.Key, *computebeta.NetworkEndpointGroupsDetachEndpointsRequest, *MockBetaNetworkEndpointGroups, ...Option) error ListNetworkEndpointsHook func(context.Context, *meta.Key, *computebeta.NetworkEndpointGroupsListEndpointsRequest, *filter.F, *MockBetaNetworkEndpointGroups, ...Option) ([]*computebeta.NetworkEndpointWithHealthStatus, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaNetworkEndpointGroups is the mock for NetworkEndpointGroups.
func NewMockBetaNetworkEndpointGroups ¶
func NewMockBetaNetworkEndpointGroups(pr ProjectRouter, objs map[meta.Key]*MockNetworkEndpointGroupsObj) *MockBetaNetworkEndpointGroups
NewMockBetaNetworkEndpointGroups returns a new mock for NetworkEndpointGroups.
func (*MockBetaNetworkEndpointGroups) AggregatedList ¶
func (m *MockBetaNetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computebeta.NetworkEndpointGroup, error)
AggregatedList is a mock for AggregatedList.
func (*MockBetaNetworkEndpointGroups) AttachNetworkEndpoints ¶
func (m *MockBetaNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computebeta.NetworkEndpointGroupsAttachEndpointsRequest, options ...Option) error
AttachNetworkEndpoints is a mock for the corresponding method.
func (*MockBetaNetworkEndpointGroups) Delete ¶
func (m *MockBetaNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockBetaNetworkEndpointGroups) DetachNetworkEndpoints ¶
func (m *MockBetaNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computebeta.NetworkEndpointGroupsDetachEndpointsRequest, options ...Option) error
DetachNetworkEndpoints is a mock for the corresponding method.
func (*MockBetaNetworkEndpointGroups) Get ¶
func (m *MockBetaNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.NetworkEndpointGroup, error)
Get returns the object from the mock.
func (*MockBetaNetworkEndpointGroups) Insert ¶
func (m *MockBetaNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computebeta.NetworkEndpointGroup, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaNetworkEndpointGroups) List ¶
func (m *MockBetaNetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointGroup, error)
List all of the objects in the mock in the given zone.
func (*MockBetaNetworkEndpointGroups) ListNetworkEndpoints ¶
func (m *MockBetaNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computebeta.NetworkEndpointGroupsListEndpointsRequest, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a mock for the corresponding method.
func (*MockBetaNetworkEndpointGroups) Obj ¶
func (m *MockBetaNetworkEndpointGroups) Obj(o *computebeta.NetworkEndpointGroup) *MockNetworkEndpointGroupsObj
Obj wraps the object for use in the mock.
type MockBetaNetworks ¶
type MockBetaNetworks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockNetworksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaNetworks, options ...Option) (bool, *computebeta.Network, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaNetworks, options ...Option) (bool, []*computebeta.Network, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.Network, m *MockBetaNetworks, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaNetworks, options ...Option) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaNetworks is the mock for Networks.
func NewMockBetaNetworks ¶
func NewMockBetaNetworks(pr ProjectRouter, objs map[meta.Key]*MockNetworksObj) *MockBetaNetworks
NewMockBetaNetworks returns a new mock for Networks.
func (*MockBetaNetworks) Get ¶
func (m *MockBetaNetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Network, error)
Get returns the object from the mock.
func (*MockBetaNetworks) Insert ¶
func (m *MockBetaNetworks) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Network, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaNetworks) List ¶
func (m *MockBetaNetworks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.Network, error)
List all of the objects in the mock.
func (*MockBetaNetworks) Obj ¶
func (m *MockBetaNetworks) Obj(o *computebeta.Network) *MockNetworksObj
Obj wraps the object for use in the mock.
type MockBetaRegionBackendServices ¶
type MockBetaRegionBackendServices struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionBackendServicesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionBackendServices, options ...Option) (bool, *computebeta.BackendService, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaRegionBackendServices, options ...Option) (bool, []*computebeta.BackendService, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.BackendService, m *MockBetaRegionBackendServices, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionBackendServices, options ...Option) (bool, error) GetHealthHook func(context.Context, *meta.Key, *computebeta.ResourceGroupReference, *MockBetaRegionBackendServices, ...Option) (*computebeta.BackendServiceGroupHealth, error) PatchHook func(context.Context, *meta.Key, *computebeta.BackendService, *MockBetaRegionBackendServices, ...Option) error SetSecurityPolicyHook func(context.Context, *meta.Key, *computebeta.SecurityPolicyReference, *MockBetaRegionBackendServices, ...Option) error UpdateHook func(context.Context, *meta.Key, *computebeta.BackendService, *MockBetaRegionBackendServices, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaRegionBackendServices is the mock for RegionBackendServices.
func NewMockBetaRegionBackendServices ¶
func NewMockBetaRegionBackendServices(pr ProjectRouter, objs map[meta.Key]*MockRegionBackendServicesObj) *MockBetaRegionBackendServices
NewMockBetaRegionBackendServices returns a new mock for RegionBackendServices.
func (*MockBetaRegionBackendServices) Delete ¶
func (m *MockBetaRegionBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockBetaRegionBackendServices) Get ¶
func (m *MockBetaRegionBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.BackendService, error)
Get returns the object from the mock.
func (*MockBetaRegionBackendServices) GetHealth ¶
func (m *MockBetaRegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *computebeta.ResourceGroupReference, options ...Option) (*computebeta.BackendServiceGroupHealth, error)
GetHealth is a mock for the corresponding method.
func (*MockBetaRegionBackendServices) Insert ¶
func (m *MockBetaRegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computebeta.BackendService, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaRegionBackendServices) List ¶
func (m *MockBetaRegionBackendServices) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.BackendService, error)
List all of the objects in the mock in the given region.
func (*MockBetaRegionBackendServices) Obj ¶
func (m *MockBetaRegionBackendServices) Obj(o *computebeta.BackendService) *MockRegionBackendServicesObj
Obj wraps the object for use in the mock.
func (*MockBetaRegionBackendServices) Patch ¶ added in v1.22.0
func (m *MockBetaRegionBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.BackendService, options ...Option) error
Patch is a mock for the corresponding method.
func (*MockBetaRegionBackendServices) SetSecurityPolicy ¶ added in v1.27.0
func (m *MockBetaRegionBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computebeta.SecurityPolicyReference, options ...Option) error
SetSecurityPolicy is a mock for the corresponding method.
func (*MockBetaRegionBackendServices) Update ¶
func (m *MockBetaRegionBackendServices) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.BackendService, options ...Option) error
Update is a mock for the corresponding method.
type MockBetaRegionHealthChecks ¶
type MockBetaRegionHealthChecks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionHealthChecksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionHealthChecks, options ...Option) (bool, *computebeta.HealthCheck, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaRegionHealthChecks, options ...Option) (bool, []*computebeta.HealthCheck, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.HealthCheck, m *MockBetaRegionHealthChecks, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionHealthChecks, options ...Option) (bool, error) UpdateHook func(context.Context, *meta.Key, *computebeta.HealthCheck, *MockBetaRegionHealthChecks, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaRegionHealthChecks is the mock for RegionHealthChecks.
func NewMockBetaRegionHealthChecks ¶
func NewMockBetaRegionHealthChecks(pr ProjectRouter, objs map[meta.Key]*MockRegionHealthChecksObj) *MockBetaRegionHealthChecks
NewMockBetaRegionHealthChecks returns a new mock for RegionHealthChecks.
func (*MockBetaRegionHealthChecks) Delete ¶
func (m *MockBetaRegionHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockBetaRegionHealthChecks) Get ¶
func (m *MockBetaRegionHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.HealthCheck, error)
Get returns the object from the mock.
func (*MockBetaRegionHealthChecks) Insert ¶
func (m *MockBetaRegionHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computebeta.HealthCheck, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaRegionHealthChecks) List ¶
func (m *MockBetaRegionHealthChecks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.HealthCheck, error)
List all of the objects in the mock in the given region.
func (*MockBetaRegionHealthChecks) Obj ¶
func (m *MockBetaRegionHealthChecks) Obj(o *computebeta.HealthCheck) *MockRegionHealthChecksObj
Obj wraps the object for use in the mock.
func (*MockBetaRegionHealthChecks) Update ¶
func (m *MockBetaRegionHealthChecks) Update(ctx context.Context, key *meta.Key, arg0 *computebeta.HealthCheck, options ...Option) error
Update is a mock for the corresponding method.
type MockBetaRegionNetworkEndpointGroups ¶ added in v1.29.0
type MockBetaRegionNetworkEndpointGroups struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionNetworkEndpointGroupsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionNetworkEndpointGroups, options ...Option) (bool, *computebeta.NetworkEndpointGroup, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaRegionNetworkEndpointGroups, options ...Option) (bool, []*computebeta.NetworkEndpointGroup, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.NetworkEndpointGroup, m *MockBetaRegionNetworkEndpointGroups, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionNetworkEndpointGroups, options ...Option) (bool, error) AttachNetworkEndpointsHook func(context.Context, *meta.Key, *computebeta.RegionNetworkEndpointGroupsAttachEndpointsRequest, *MockBetaRegionNetworkEndpointGroups, ...Option) error DetachNetworkEndpointsHook func(context.Context, *meta.Key, *computebeta.RegionNetworkEndpointGroupsDetachEndpointsRequest, *MockBetaRegionNetworkEndpointGroups, ...Option) error ListNetworkEndpointsHook func(context.Context, *meta.Key, *filter.F, *MockBetaRegionNetworkEndpointGroups, ...Option) ([]*computebeta.NetworkEndpointWithHealthStatus, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaRegionNetworkEndpointGroups is the mock for RegionNetworkEndpointGroups.
func NewMockBetaRegionNetworkEndpointGroups ¶ added in v1.29.0
func NewMockBetaRegionNetworkEndpointGroups(pr ProjectRouter, objs map[meta.Key]*MockRegionNetworkEndpointGroupsObj) *MockBetaRegionNetworkEndpointGroups
NewMockBetaRegionNetworkEndpointGroups returns a new mock for RegionNetworkEndpointGroups.
func (*MockBetaRegionNetworkEndpointGroups) AttachNetworkEndpoints ¶ added in v1.29.0
func (m *MockBetaRegionNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computebeta.RegionNetworkEndpointGroupsAttachEndpointsRequest, options ...Option) error
AttachNetworkEndpoints is a mock for the corresponding method.
func (*MockBetaRegionNetworkEndpointGroups) Delete ¶ added in v1.29.0
func (m *MockBetaRegionNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockBetaRegionNetworkEndpointGroups) DetachNetworkEndpoints ¶ added in v1.29.0
func (m *MockBetaRegionNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computebeta.RegionNetworkEndpointGroupsDetachEndpointsRequest, options ...Option) error
DetachNetworkEndpoints is a mock for the corresponding method.
func (*MockBetaRegionNetworkEndpointGroups) Get ¶ added in v1.29.0
func (m *MockBetaRegionNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.NetworkEndpointGroup, error)
Get returns the object from the mock.
func (*MockBetaRegionNetworkEndpointGroups) Insert ¶ added in v1.29.0
func (m *MockBetaRegionNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computebeta.NetworkEndpointGroup, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaRegionNetworkEndpointGroups) List ¶ added in v1.29.0
func (m *MockBetaRegionNetworkEndpointGroups) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointGroup, error)
List all of the objects in the mock in the given region.
func (*MockBetaRegionNetworkEndpointGroups) ListNetworkEndpoints ¶ added in v1.29.0
func (m *MockBetaRegionNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computebeta.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a mock for the corresponding method.
func (*MockBetaRegionNetworkEndpointGroups) Obj ¶ added in v1.29.0
func (m *MockBetaRegionNetworkEndpointGroups) Obj(o *computebeta.NetworkEndpointGroup) *MockRegionNetworkEndpointGroupsObj
Obj wraps the object for use in the mock.
type MockBetaRegionSslCertificates ¶
type MockBetaRegionSslCertificates struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionSslCertificatesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionSslCertificates, options ...Option) (bool, *computebeta.SslCertificate, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaRegionSslCertificates, options ...Option) (bool, []*computebeta.SslCertificate, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.SslCertificate, m *MockBetaRegionSslCertificates, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionSslCertificates, options ...Option) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaRegionSslCertificates is the mock for RegionSslCertificates.
func NewMockBetaRegionSslCertificates ¶
func NewMockBetaRegionSslCertificates(pr ProjectRouter, objs map[meta.Key]*MockRegionSslCertificatesObj) *MockBetaRegionSslCertificates
NewMockBetaRegionSslCertificates returns a new mock for RegionSslCertificates.
func (*MockBetaRegionSslCertificates) Delete ¶
func (m *MockBetaRegionSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockBetaRegionSslCertificates) Get ¶
func (m *MockBetaRegionSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.SslCertificate, error)
Get returns the object from the mock.
func (*MockBetaRegionSslCertificates) Insert ¶
func (m *MockBetaRegionSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computebeta.SslCertificate, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaRegionSslCertificates) List ¶
func (m *MockBetaRegionSslCertificates) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.SslCertificate, error)
List all of the objects in the mock in the given region.
func (*MockBetaRegionSslCertificates) Obj ¶
func (m *MockBetaRegionSslCertificates) Obj(o *computebeta.SslCertificate) *MockRegionSslCertificatesObj
Obj wraps the object for use in the mock.
type MockBetaRegionTargetHttpProxies ¶
type MockBetaRegionTargetHttpProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionTargetHttpProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionTargetHttpProxies, options ...Option) (bool, *computebeta.TargetHttpProxy, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaRegionTargetHttpProxies, options ...Option) (bool, []*computebeta.TargetHttpProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpProxy, m *MockBetaRegionTargetHttpProxies, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionTargetHttpProxies, options ...Option) (bool, error) SetUrlMapHook func(context.Context, *meta.Key, *computebeta.UrlMapReference, *MockBetaRegionTargetHttpProxies, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaRegionTargetHttpProxies is the mock for RegionTargetHttpProxies.
func NewMockBetaRegionTargetHttpProxies ¶
func NewMockBetaRegionTargetHttpProxies(pr ProjectRouter, objs map[meta.Key]*MockRegionTargetHttpProxiesObj) *MockBetaRegionTargetHttpProxies
NewMockBetaRegionTargetHttpProxies returns a new mock for RegionTargetHttpProxies.
func (*MockBetaRegionTargetHttpProxies) Delete ¶
func (m *MockBetaRegionTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockBetaRegionTargetHttpProxies) Get ¶
func (m *MockBetaRegionTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetHttpProxy, error)
Get returns the object from the mock.
func (*MockBetaRegionTargetHttpProxies) Insert ¶
func (m *MockBetaRegionTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpProxy, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaRegionTargetHttpProxies) List ¶
func (m *MockBetaRegionTargetHttpProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.TargetHttpProxy, error)
List all of the objects in the mock in the given region.
func (*MockBetaRegionTargetHttpProxies) Obj ¶
func (m *MockBetaRegionTargetHttpProxies) Obj(o *computebeta.TargetHttpProxy) *MockRegionTargetHttpProxiesObj
Obj wraps the object for use in the mock.
func (*MockBetaRegionTargetHttpProxies) SetUrlMap ¶
func (m *MockBetaRegionTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computebeta.UrlMapReference, options ...Option) error
SetUrlMap is a mock for the corresponding method.
type MockBetaRegionTargetHttpsProxies ¶
type MockBetaRegionTargetHttpsProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionTargetHttpsProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionTargetHttpsProxies, options ...Option) (bool, *computebeta.TargetHttpsProxy, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaRegionTargetHttpsProxies, options ...Option) (bool, []*computebeta.TargetHttpsProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpsProxy, m *MockBetaRegionTargetHttpsProxies, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionTargetHttpsProxies, options ...Option) (bool, error) PatchHook func(context.Context, *meta.Key, *computebeta.TargetHttpsProxy, *MockBetaRegionTargetHttpsProxies, ...Option) error SetSslCertificatesHook func(context.Context, *meta.Key, *computebeta.RegionTargetHttpsProxiesSetSslCertificatesRequest, *MockBetaRegionTargetHttpsProxies, ...Option) error SetUrlMapHook func(context.Context, *meta.Key, *computebeta.UrlMapReference, *MockBetaRegionTargetHttpsProxies, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaRegionTargetHttpsProxies is the mock for RegionTargetHttpsProxies.
func NewMockBetaRegionTargetHttpsProxies ¶
func NewMockBetaRegionTargetHttpsProxies(pr ProjectRouter, objs map[meta.Key]*MockRegionTargetHttpsProxiesObj) *MockBetaRegionTargetHttpsProxies
NewMockBetaRegionTargetHttpsProxies returns a new mock for RegionTargetHttpsProxies.
func (*MockBetaRegionTargetHttpsProxies) Delete ¶
func (m *MockBetaRegionTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockBetaRegionTargetHttpsProxies) Get ¶
func (m *MockBetaRegionTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetHttpsProxy, error)
Get returns the object from the mock.
func (*MockBetaRegionTargetHttpsProxies) Insert ¶
func (m *MockBetaRegionTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpsProxy, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaRegionTargetHttpsProxies) List ¶
func (m *MockBetaRegionTargetHttpsProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.TargetHttpsProxy, error)
List all of the objects in the mock in the given region.
func (*MockBetaRegionTargetHttpsProxies) Obj ¶
func (m *MockBetaRegionTargetHttpsProxies) Obj(o *computebeta.TargetHttpsProxy) *MockRegionTargetHttpsProxiesObj
Obj wraps the object for use in the mock.
func (*MockBetaRegionTargetHttpsProxies) Patch ¶ added in v1.25.0
func (m *MockBetaRegionTargetHttpsProxies) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.TargetHttpsProxy, options ...Option) error
Patch is a mock for the corresponding method.
func (*MockBetaRegionTargetHttpsProxies) SetSslCertificates ¶
func (m *MockBetaRegionTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *computebeta.RegionTargetHttpsProxiesSetSslCertificatesRequest, options ...Option) error
SetSslCertificates is a mock for the corresponding method.
func (*MockBetaRegionTargetHttpsProxies) SetUrlMap ¶
func (m *MockBetaRegionTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computebeta.UrlMapReference, options ...Option) error
SetUrlMap is a mock for the corresponding method.
type MockBetaRegionUrlMaps ¶
type MockBetaRegionUrlMaps struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionUrlMapsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionUrlMaps, options ...Option) (bool, *computebeta.UrlMap, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaRegionUrlMaps, options ...Option) (bool, []*computebeta.UrlMap, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.UrlMap, m *MockBetaRegionUrlMaps, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaRegionUrlMaps, options ...Option) (bool, error) UpdateHook func(context.Context, *meta.Key, *computebeta.UrlMap, *MockBetaRegionUrlMaps, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaRegionUrlMaps is the mock for RegionUrlMaps.
func NewMockBetaRegionUrlMaps ¶
func NewMockBetaRegionUrlMaps(pr ProjectRouter, objs map[meta.Key]*MockRegionUrlMapsObj) *MockBetaRegionUrlMaps
NewMockBetaRegionUrlMaps returns a new mock for RegionUrlMaps.
func (*MockBetaRegionUrlMaps) Get ¶
func (m *MockBetaRegionUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.UrlMap, error)
Get returns the object from the mock.
func (*MockBetaRegionUrlMaps) Insert ¶
func (m *MockBetaRegionUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computebeta.UrlMap, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaRegionUrlMaps) List ¶
func (m *MockBetaRegionUrlMaps) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.UrlMap, error)
List all of the objects in the mock in the given region.
func (*MockBetaRegionUrlMaps) Obj ¶
func (m *MockBetaRegionUrlMaps) Obj(o *computebeta.UrlMap) *MockRegionUrlMapsObj
Obj wraps the object for use in the mock.
type MockBetaRouters ¶ added in v1.17.0
type MockBetaRouters struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRoutersObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error AggregatedListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaRouters, options ...Option) (bool, *computebeta.Router, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaRouters, options ...Option) (bool, []*computebeta.Router, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.Router, m *MockBetaRouters, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaRouters, options ...Option) (bool, error) AggregatedListHook func(ctx context.Context, fl *filter.F, m *MockBetaRouters, options ...Option) (bool, map[string][]*computebeta.Router, error) GetRouterStatusHook func(context.Context, *meta.Key, *MockBetaRouters, ...Option) (*computebeta.RouterStatusResponse, error) PatchHook func(context.Context, *meta.Key, *computebeta.Router, *MockBetaRouters, ...Option) error PreviewHook func(context.Context, *meta.Key, *computebeta.Router, *MockBetaRouters, ...Option) (*computebeta.RoutersPreviewResponse, error) TestIamPermissionsHook func(context.Context, *meta.Key, *computebeta.TestPermissionsRequest, *MockBetaRouters, ...Option) (*computebeta.TestPermissionsResponse, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaRouters is the mock for Routers.
func NewMockBetaRouters ¶ added in v1.17.0
func NewMockBetaRouters(pr ProjectRouter, objs map[meta.Key]*MockRoutersObj) *MockBetaRouters
NewMockBetaRouters returns a new mock for Routers.
func (*MockBetaRouters) AggregatedList ¶ added in v1.17.0
func (m *MockBetaRouters) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computebeta.Router, error)
AggregatedList is a mock for AggregatedList.
func (*MockBetaRouters) Get ¶ added in v1.17.0
func (m *MockBetaRouters) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Router, error)
Get returns the object from the mock.
func (*MockBetaRouters) GetRouterStatus ¶ added in v1.17.0
func (m *MockBetaRouters) GetRouterStatus(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.RouterStatusResponse, error)
GetRouterStatus is a mock for the corresponding method.
func (*MockBetaRouters) Insert ¶ added in v1.17.0
func (m *MockBetaRouters) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Router, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaRouters) List ¶ added in v1.17.0
func (m *MockBetaRouters) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.Router, error)
List all of the objects in the mock in the given region.
func (*MockBetaRouters) Obj ¶ added in v1.17.0
func (m *MockBetaRouters) Obj(o *computebeta.Router) *MockRoutersObj
Obj wraps the object for use in the mock.
func (*MockBetaRouters) Patch ¶ added in v1.17.0
func (m *MockBetaRouters) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.Router, options ...Option) error
Patch is a mock for the corresponding method.
func (*MockBetaRouters) Preview ¶ added in v1.17.0
func (m *MockBetaRouters) Preview(ctx context.Context, key *meta.Key, arg0 *computebeta.Router, options ...Option) (*computebeta.RoutersPreviewResponse, error)
Preview is a mock for the corresponding method.
func (*MockBetaRouters) TestIamPermissions ¶ added in v1.17.0
func (m *MockBetaRouters) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computebeta.TestPermissionsRequest, options ...Option) (*computebeta.TestPermissionsResponse, error)
TestIamPermissions is a mock for the corresponding method.
type MockBetaSecurityPolicies ¶
type MockBetaSecurityPolicies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockSecurityPoliciesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaSecurityPolicies, options ...Option) (bool, *computebeta.SecurityPolicy, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaSecurityPolicies, options ...Option) (bool, []*computebeta.SecurityPolicy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.SecurityPolicy, m *MockBetaSecurityPolicies, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaSecurityPolicies, options ...Option) (bool, error) AddRuleHook func(context.Context, *meta.Key, *computebeta.SecurityPolicyRule, *MockBetaSecurityPolicies, ...Option) error GetRuleHook func(context.Context, *meta.Key, *MockBetaSecurityPolicies, ...Option) (*computebeta.SecurityPolicyRule, error) PatchHook func(context.Context, *meta.Key, *computebeta.SecurityPolicy, *MockBetaSecurityPolicies, ...Option) error PatchRuleHook func(context.Context, *meta.Key, *computebeta.SecurityPolicyRule, *MockBetaSecurityPolicies, ...Option) error RemoveRuleHook func(context.Context, *meta.Key, *MockBetaSecurityPolicies, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaSecurityPolicies is the mock for SecurityPolicies.
func NewMockBetaSecurityPolicies ¶
func NewMockBetaSecurityPolicies(pr ProjectRouter, objs map[meta.Key]*MockSecurityPoliciesObj) *MockBetaSecurityPolicies
NewMockBetaSecurityPolicies returns a new mock for SecurityPolicies.
func (*MockBetaSecurityPolicies) AddRule ¶
func (m *MockBetaSecurityPolicies) AddRule(ctx context.Context, key *meta.Key, arg0 *computebeta.SecurityPolicyRule, options ...Option) error
AddRule is a mock for the corresponding method.
func (*MockBetaSecurityPolicies) Delete ¶
func (m *MockBetaSecurityPolicies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockBetaSecurityPolicies) Get ¶
func (m *MockBetaSecurityPolicies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.SecurityPolicy, error)
Get returns the object from the mock.
func (*MockBetaSecurityPolicies) GetRule ¶
func (m *MockBetaSecurityPolicies) GetRule(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.SecurityPolicyRule, error)
GetRule is a mock for the corresponding method.
func (*MockBetaSecurityPolicies) Insert ¶
func (m *MockBetaSecurityPolicies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.SecurityPolicy, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaSecurityPolicies) List ¶
func (m *MockBetaSecurityPolicies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.SecurityPolicy, error)
List all of the objects in the mock.
func (*MockBetaSecurityPolicies) Obj ¶
func (m *MockBetaSecurityPolicies) Obj(o *computebeta.SecurityPolicy) *MockSecurityPoliciesObj
Obj wraps the object for use in the mock.
func (*MockBetaSecurityPolicies) Patch ¶
func (m *MockBetaSecurityPolicies) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.SecurityPolicy, options ...Option) error
Patch is a mock for the corresponding method.
func (*MockBetaSecurityPolicies) PatchRule ¶
func (m *MockBetaSecurityPolicies) PatchRule(ctx context.Context, key *meta.Key, arg0 *computebeta.SecurityPolicyRule, options ...Option) error
PatchRule is a mock for the corresponding method.
func (*MockBetaSecurityPolicies) RemoveRule ¶
func (m *MockBetaSecurityPolicies) RemoveRule(ctx context.Context, key *meta.Key, options ...Option) error
RemoveRule is a mock for the corresponding method.
type MockBetaServiceAttachments ¶ added in v1.15.0
type MockBetaServiceAttachments struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockServiceAttachmentsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaServiceAttachments, options ...Option) (bool, *computebeta.ServiceAttachment, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaServiceAttachments, options ...Option) (bool, []*computebeta.ServiceAttachment, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.ServiceAttachment, m *MockBetaServiceAttachments, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaServiceAttachments, options ...Option) (bool, error) PatchHook func(context.Context, *meta.Key, *computebeta.ServiceAttachment, *MockBetaServiceAttachments, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaServiceAttachments is the mock for ServiceAttachments.
func NewMockBetaServiceAttachments ¶ added in v1.15.0
func NewMockBetaServiceAttachments(pr ProjectRouter, objs map[meta.Key]*MockServiceAttachmentsObj) *MockBetaServiceAttachments
NewMockBetaServiceAttachments returns a new mock for ServiceAttachments.
func (*MockBetaServiceAttachments) Delete ¶ added in v1.15.0
func (m *MockBetaServiceAttachments) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockBetaServiceAttachments) Get ¶ added in v1.15.0
func (m *MockBetaServiceAttachments) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.ServiceAttachment, error)
Get returns the object from the mock.
func (*MockBetaServiceAttachments) Insert ¶ added in v1.15.0
func (m *MockBetaServiceAttachments) Insert(ctx context.Context, key *meta.Key, obj *computebeta.ServiceAttachment, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaServiceAttachments) List ¶ added in v1.15.0
func (m *MockBetaServiceAttachments) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.ServiceAttachment, error)
List all of the objects in the mock in the given region.
func (*MockBetaServiceAttachments) Obj ¶ added in v1.15.0
func (m *MockBetaServiceAttachments) Obj(o *computebeta.ServiceAttachment) *MockServiceAttachmentsObj
Obj wraps the object for use in the mock.
func (*MockBetaServiceAttachments) Patch ¶ added in v1.15.0
func (m *MockBetaServiceAttachments) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.ServiceAttachment, options ...Option) error
Patch is a mock for the corresponding method.
type MockBetaSslCertificates ¶
type MockBetaSslCertificates struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockSslCertificatesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaSslCertificates, options ...Option) (bool, *computebeta.SslCertificate, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaSslCertificates, options ...Option) (bool, []*computebeta.SslCertificate, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.SslCertificate, m *MockBetaSslCertificates, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaSslCertificates, options ...Option) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaSslCertificates is the mock for SslCertificates.
func NewMockBetaSslCertificates ¶
func NewMockBetaSslCertificates(pr ProjectRouter, objs map[meta.Key]*MockSslCertificatesObj) *MockBetaSslCertificates
NewMockBetaSslCertificates returns a new mock for SslCertificates.
func (*MockBetaSslCertificates) Delete ¶
func (m *MockBetaSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockBetaSslCertificates) Get ¶
func (m *MockBetaSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.SslCertificate, error)
Get returns the object from the mock.
func (*MockBetaSslCertificates) Insert ¶
func (m *MockBetaSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computebeta.SslCertificate, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaSslCertificates) List ¶
func (m *MockBetaSslCertificates) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.SslCertificate, error)
List all of the objects in the mock.
func (*MockBetaSslCertificates) Obj ¶
func (m *MockBetaSslCertificates) Obj(o *computebeta.SslCertificate) *MockSslCertificatesObj
Obj wraps the object for use in the mock.
type MockBetaSubnetworks ¶
type MockBetaSubnetworks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockSubnetworksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error ListUsableError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaSubnetworks, options ...Option) (bool, *computebeta.Subnetwork, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockBetaSubnetworks, options ...Option) (bool, []*computebeta.Subnetwork, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.Subnetwork, m *MockBetaSubnetworks, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaSubnetworks, options ...Option) (bool, error) ListUsableHook func(ctx context.Context, fl *filter.F, m *MockBetaSubnetworks, options ...Option) (bool, []*computebeta.UsableSubnetwork, error) PatchHook func(context.Context, *meta.Key, *computebeta.Subnetwork, *MockBetaSubnetworks, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaSubnetworks is the mock for Subnetworks.
func NewMockBetaSubnetworks ¶
func NewMockBetaSubnetworks(pr ProjectRouter, objs map[meta.Key]*MockSubnetworksObj) *MockBetaSubnetworks
NewMockBetaSubnetworks returns a new mock for Subnetworks.
func (*MockBetaSubnetworks) Get ¶
func (m *MockBetaSubnetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.Subnetwork, error)
Get returns the object from the mock.
func (*MockBetaSubnetworks) Insert ¶
func (m *MockBetaSubnetworks) Insert(ctx context.Context, key *meta.Key, obj *computebeta.Subnetwork, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaSubnetworks) List ¶
func (m *MockBetaSubnetworks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computebeta.Subnetwork, error)
List all of the objects in the mock in the given region.
func (*MockBetaSubnetworks) ListUsable ¶ added in v1.16.0
func (m *MockBetaSubnetworks) ListUsable(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.UsableSubnetwork, error)
List all of the objects in the mock.
func (*MockBetaSubnetworks) Obj ¶
func (m *MockBetaSubnetworks) Obj(o *computebeta.Subnetwork) *MockSubnetworksObj
Obj wraps the object for use in the mock.
func (*MockBetaSubnetworks) Patch ¶ added in v1.17.0
func (m *MockBetaSubnetworks) Patch(ctx context.Context, key *meta.Key, arg0 *computebeta.Subnetwork, options ...Option) error
Patch is a mock for the corresponding method.
type MockBetaTargetHttpProxies ¶
type MockBetaTargetHttpProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockTargetHttpProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaTargetHttpProxies, options ...Option) (bool, *computebeta.TargetHttpProxy, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaTargetHttpProxies, options ...Option) (bool, []*computebeta.TargetHttpProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpProxy, m *MockBetaTargetHttpProxies, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaTargetHttpProxies, options ...Option) (bool, error) SetUrlMapHook func(context.Context, *meta.Key, *computebeta.UrlMapReference, *MockBetaTargetHttpProxies, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaTargetHttpProxies is the mock for TargetHttpProxies.
func NewMockBetaTargetHttpProxies ¶
func NewMockBetaTargetHttpProxies(pr ProjectRouter, objs map[meta.Key]*MockTargetHttpProxiesObj) *MockBetaTargetHttpProxies
NewMockBetaTargetHttpProxies returns a new mock for TargetHttpProxies.
func (*MockBetaTargetHttpProxies) Delete ¶
func (m *MockBetaTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockBetaTargetHttpProxies) Get ¶
func (m *MockBetaTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetHttpProxy, error)
Get returns the object from the mock.
func (*MockBetaTargetHttpProxies) Insert ¶
func (m *MockBetaTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpProxy, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaTargetHttpProxies) List ¶
func (m *MockBetaTargetHttpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.TargetHttpProxy, error)
List all of the objects in the mock.
func (*MockBetaTargetHttpProxies) Obj ¶
func (m *MockBetaTargetHttpProxies) Obj(o *computebeta.TargetHttpProxy) *MockTargetHttpProxiesObj
Obj wraps the object for use in the mock.
func (*MockBetaTargetHttpProxies) SetUrlMap ¶
func (m *MockBetaTargetHttpProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computebeta.UrlMapReference, options ...Option) error
SetUrlMap is a mock for the corresponding method.
type MockBetaTargetHttpsProxies ¶
type MockBetaTargetHttpsProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockTargetHttpsProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaTargetHttpsProxies, options ...Option) (bool, *computebeta.TargetHttpsProxy, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaTargetHttpsProxies, options ...Option) (bool, []*computebeta.TargetHttpsProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpsProxy, m *MockBetaTargetHttpsProxies, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaTargetHttpsProxies, options ...Option) (bool, error) SetCertificateMapHook func(context.Context, *meta.Key, *computebeta.TargetHttpsProxiesSetCertificateMapRequest, *MockBetaTargetHttpsProxies, ...Option) error SetSslCertificatesHook func(context.Context, *meta.Key, *computebeta.TargetHttpsProxiesSetSslCertificatesRequest, *MockBetaTargetHttpsProxies, ...Option) error SetSslPolicyHook func(context.Context, *meta.Key, *computebeta.SslPolicyReference, *MockBetaTargetHttpsProxies, ...Option) error SetUrlMapHook func(context.Context, *meta.Key, *computebeta.UrlMapReference, *MockBetaTargetHttpsProxies, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaTargetHttpsProxies is the mock for TargetHttpsProxies.
func NewMockBetaTargetHttpsProxies ¶
func NewMockBetaTargetHttpsProxies(pr ProjectRouter, objs map[meta.Key]*MockTargetHttpsProxiesObj) *MockBetaTargetHttpsProxies
NewMockBetaTargetHttpsProxies returns a new mock for TargetHttpsProxies.
func (*MockBetaTargetHttpsProxies) Delete ¶
func (m *MockBetaTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockBetaTargetHttpsProxies) Get ¶
func (m *MockBetaTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetHttpsProxy, error)
Get returns the object from the mock.
func (*MockBetaTargetHttpsProxies) Insert ¶
func (m *MockBetaTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetHttpsProxy, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaTargetHttpsProxies) List ¶
func (m *MockBetaTargetHttpsProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.TargetHttpsProxy, error)
List all of the objects in the mock.
func (*MockBetaTargetHttpsProxies) Obj ¶
func (m *MockBetaTargetHttpsProxies) Obj(o *computebeta.TargetHttpsProxy) *MockTargetHttpsProxiesObj
Obj wraps the object for use in the mock.
func (*MockBetaTargetHttpsProxies) SetCertificateMap ¶ added in v1.20.0
func (m *MockBetaTargetHttpsProxies) SetCertificateMap(ctx context.Context, key *meta.Key, arg0 *computebeta.TargetHttpsProxiesSetCertificateMapRequest, options ...Option) error
SetCertificateMap is a mock for the corresponding method.
func (*MockBetaTargetHttpsProxies) SetSslCertificates ¶
func (m *MockBetaTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *computebeta.TargetHttpsProxiesSetSslCertificatesRequest, options ...Option) error
SetSslCertificates is a mock for the corresponding method.
func (*MockBetaTargetHttpsProxies) SetSslPolicy ¶
func (m *MockBetaTargetHttpsProxies) SetSslPolicy(ctx context.Context, key *meta.Key, arg0 *computebeta.SslPolicyReference, options ...Option) error
SetSslPolicy is a mock for the corresponding method.
func (*MockBetaTargetHttpsProxies) SetUrlMap ¶
func (m *MockBetaTargetHttpsProxies) SetUrlMap(ctx context.Context, key *meta.Key, arg0 *computebeta.UrlMapReference, options ...Option) error
SetUrlMap is a mock for the corresponding method.
type MockBetaTargetTcpProxies ¶
type MockBetaTargetTcpProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockTargetTcpProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaTargetTcpProxies, options ...Option) (bool, *computebeta.TargetTcpProxy, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaTargetTcpProxies, options ...Option) (bool, []*computebeta.TargetTcpProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.TargetTcpProxy, m *MockBetaTargetTcpProxies, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaTargetTcpProxies, options ...Option) (bool, error) SetBackendServiceHook func(context.Context, *meta.Key, *computebeta.TargetTcpProxiesSetBackendServiceRequest, *MockBetaTargetTcpProxies, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaTargetTcpProxies is the mock for TargetTcpProxies.
func NewMockBetaTargetTcpProxies ¶
func NewMockBetaTargetTcpProxies(pr ProjectRouter, objs map[meta.Key]*MockTargetTcpProxiesObj) *MockBetaTargetTcpProxies
NewMockBetaTargetTcpProxies returns a new mock for TargetTcpProxies.
func (*MockBetaTargetTcpProxies) Delete ¶
func (m *MockBetaTargetTcpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockBetaTargetTcpProxies) Get ¶
func (m *MockBetaTargetTcpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.TargetTcpProxy, error)
Get returns the object from the mock.
func (*MockBetaTargetTcpProxies) Insert ¶
func (m *MockBetaTargetTcpProxies) Insert(ctx context.Context, key *meta.Key, obj *computebeta.TargetTcpProxy, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaTargetTcpProxies) List ¶
func (m *MockBetaTargetTcpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.TargetTcpProxy, error)
List all of the objects in the mock.
func (*MockBetaTargetTcpProxies) Obj ¶
func (m *MockBetaTargetTcpProxies) Obj(o *computebeta.TargetTcpProxy) *MockTargetTcpProxiesObj
Obj wraps the object for use in the mock.
func (*MockBetaTargetTcpProxies) SetBackendService ¶
func (m *MockBetaTargetTcpProxies) SetBackendService(ctx context.Context, key *meta.Key, arg0 *computebeta.TargetTcpProxiesSetBackendServiceRequest, options ...Option) error
SetBackendService is a mock for the corresponding method.
type MockBetaTcpRoutes ¶ added in v1.25.0
type MockBetaTcpRoutes struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockTcpRoutesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaTcpRoutes, options ...Option) (bool, *networkservicesbeta.TcpRoute, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaTcpRoutes, options ...Option) (bool, []*networkservicesbeta.TcpRoute, error) InsertHook func(ctx context.Context, key *meta.Key, obj *networkservicesbeta.TcpRoute, m *MockBetaTcpRoutes, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaTcpRoutes, options ...Option) (bool, error) PatchHook func(context.Context, *meta.Key, *networkservicesbeta.TcpRoute, *MockBetaTcpRoutes, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaTcpRoutes is the mock for TcpRoutes.
func NewMockBetaTcpRoutes ¶ added in v1.25.0
func NewMockBetaTcpRoutes(pr ProjectRouter, objs map[meta.Key]*MockTcpRoutesObj) *MockBetaTcpRoutes
NewMockBetaTcpRoutes returns a new mock for TcpRoutes.
func (*MockBetaTcpRoutes) Get ¶ added in v1.25.0
func (m *MockBetaTcpRoutes) Get(ctx context.Context, key *meta.Key, options ...Option) (*networkservicesbeta.TcpRoute, error)
Get returns the object from the mock.
func (*MockBetaTcpRoutes) Insert ¶ added in v1.25.0
func (m *MockBetaTcpRoutes) Insert(ctx context.Context, key *meta.Key, obj *networkservicesbeta.TcpRoute, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaTcpRoutes) List ¶ added in v1.25.0
func (m *MockBetaTcpRoutes) List(ctx context.Context, fl *filter.F, options ...Option) ([]*networkservicesbeta.TcpRoute, error)
List all of the objects in the mock.
func (*MockBetaTcpRoutes) Obj ¶ added in v1.25.0
func (m *MockBetaTcpRoutes) Obj(o *networkservicesbeta.TcpRoute) *MockTcpRoutesObj
Obj wraps the object for use in the mock.
type MockBetaUrlMaps ¶
type MockBetaUrlMaps struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockUrlMapsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockBetaUrlMaps, options ...Option) (bool, *computebeta.UrlMap, error) ListHook func(ctx context.Context, fl *filter.F, m *MockBetaUrlMaps, options ...Option) (bool, []*computebeta.UrlMap, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computebeta.UrlMap, m *MockBetaUrlMaps, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockBetaUrlMaps, options ...Option) (bool, error) UpdateHook func(context.Context, *meta.Key, *computebeta.UrlMap, *MockBetaUrlMaps, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockBetaUrlMaps is the mock for UrlMaps.
func NewMockBetaUrlMaps ¶
func NewMockBetaUrlMaps(pr ProjectRouter, objs map[meta.Key]*MockUrlMapsObj) *MockBetaUrlMaps
NewMockBetaUrlMaps returns a new mock for UrlMaps.
func (*MockBetaUrlMaps) Get ¶
func (m *MockBetaUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computebeta.UrlMap, error)
Get returns the object from the mock.
func (*MockBetaUrlMaps) Insert ¶
func (m *MockBetaUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computebeta.UrlMap, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockBetaUrlMaps) List ¶
func (m *MockBetaUrlMaps) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computebeta.UrlMap, error)
List all of the objects in the mock.
func (*MockBetaUrlMaps) Obj ¶
func (m *MockBetaUrlMaps) Obj(o *computebeta.UrlMap) *MockUrlMapsObj
Obj wraps the object for use in the mock.
type MockDisks ¶
type MockDisks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockDisksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockDisks, options ...Option) (bool, *computega.Disk, error) ListHook func(ctx context.Context, zone string, fl *filter.F, m *MockDisks, options ...Option) (bool, []*computega.Disk, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.Disk, m *MockDisks, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockDisks, options ...Option) (bool, error) ResizeHook func(context.Context, *meta.Key, *computega.DisksResizeRequest, *MockDisks, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockDisks is the mock for Disks.
func NewMockDisks ¶
func NewMockDisks(pr ProjectRouter, objs map[meta.Key]*MockDisksObj) *MockDisks
NewMockDisks returns a new mock for Disks.
func (*MockDisks) Get ¶
func (m *MockDisks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Disk, error)
Get returns the object from the mock.
func (*MockDisks) Insert ¶
func (m *MockDisks) Insert(ctx context.Context, key *meta.Key, obj *computega.Disk, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockDisks) List ¶
func (m *MockDisks) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.Disk, error)
List all of the objects in the mock in the given zone.
type MockDisksObj ¶
type MockDisksObj struct {
Obj interface{}
}
MockDisksObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockDisksObj) ToGA ¶
func (m *MockDisksObj) ToGA() *computega.Disk
ToGA retrieves the given version of the object.
type MockFirewalls ¶
type MockFirewalls struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockFirewallsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockFirewalls, options ...Option) (bool, *computega.Firewall, error) ListHook func(ctx context.Context, fl *filter.F, m *MockFirewalls, options ...Option) (bool, []*computega.Firewall, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.Firewall, m *MockFirewalls, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockFirewalls, options ...Option) (bool, error) PatchHook func(context.Context, *meta.Key, *computega.Firewall, *MockFirewalls, ...Option) error UpdateHook func(context.Context, *meta.Key, *computega.Firewall, *MockFirewalls, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockFirewalls is the mock for Firewalls.
func NewMockFirewalls ¶
func NewMockFirewalls(pr ProjectRouter, objs map[meta.Key]*MockFirewallsObj) *MockFirewalls
NewMockFirewalls returns a new mock for Firewalls.
func (*MockFirewalls) Get ¶
func (m *MockFirewalls) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Firewall, error)
Get returns the object from the mock.
func (*MockFirewalls) Insert ¶
func (m *MockFirewalls) Insert(ctx context.Context, key *meta.Key, obj *computega.Firewall, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockFirewalls) List ¶
func (m *MockFirewalls) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Firewall, error)
List all of the objects in the mock.
func (*MockFirewalls) Obj ¶
func (m *MockFirewalls) Obj(o *computega.Firewall) *MockFirewallsObj
Obj wraps the object for use in the mock.
type MockFirewallsObj ¶
type MockFirewallsObj struct {
Obj interface{}
}
MockFirewallsObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockFirewallsObj) ToAlpha ¶
func (m *MockFirewallsObj) ToAlpha() *computealpha.Firewall
ToAlpha retrieves the given version of the object.
func (*MockFirewallsObj) ToBeta ¶
func (m *MockFirewallsObj) ToBeta() *computebeta.Firewall
ToBeta retrieves the given version of the object.
func (*MockFirewallsObj) ToGA ¶
func (m *MockFirewallsObj) ToGA() *computega.Firewall
ToGA retrieves the given version of the object.
type MockForwardingRules ¶
type MockForwardingRules struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockForwardingRulesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockForwardingRules, options ...Option) (bool, *computega.ForwardingRule, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockForwardingRules, options ...Option) (bool, []*computega.ForwardingRule, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.ForwardingRule, m *MockForwardingRules, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockForwardingRules, options ...Option) (bool, error) SetLabelsHook func(context.Context, *meta.Key, *computega.RegionSetLabelsRequest, *MockForwardingRules, ...Option) error SetTargetHook func(context.Context, *meta.Key, *computega.TargetReference, *MockForwardingRules, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockForwardingRules is the mock for ForwardingRules.
func NewMockForwardingRules ¶
func NewMockForwardingRules(pr ProjectRouter, objs map[meta.Key]*MockForwardingRulesObj) *MockForwardingRules
NewMockForwardingRules returns a new mock for ForwardingRules.
func (*MockForwardingRules) Get ¶
func (m *MockForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.ForwardingRule, error)
Get returns the object from the mock.
func (*MockForwardingRules) Insert ¶
func (m *MockForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computega.ForwardingRule, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockForwardingRules) List ¶
func (m *MockForwardingRules) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.ForwardingRule, error)
List all of the objects in the mock in the given region.
func (*MockForwardingRules) Obj ¶
func (m *MockForwardingRules) Obj(o *computega.ForwardingRule) *MockForwardingRulesObj
Obj wraps the object for use in the mock.
type MockForwardingRulesObj ¶
type MockForwardingRulesObj struct {
Obj interface{}
}
MockForwardingRulesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockForwardingRulesObj) ToAlpha ¶
func (m *MockForwardingRulesObj) ToAlpha() *computealpha.ForwardingRule
ToAlpha retrieves the given version of the object.
func (*MockForwardingRulesObj) ToBeta ¶
func (m *MockForwardingRulesObj) ToBeta() *computebeta.ForwardingRule
ToBeta retrieves the given version of the object.
func (*MockForwardingRulesObj) ToGA ¶
func (m *MockForwardingRulesObj) ToGA() *computega.ForwardingRule
ToGA retrieves the given version of the object.
type MockGCE ¶
type MockGCE struct { MockAddresses *MockAddresses MockAlphaAddresses *MockAlphaAddresses MockBetaAddresses *MockBetaAddresses MockAlphaGlobalAddresses *MockAlphaGlobalAddresses MockBetaGlobalAddresses *MockBetaGlobalAddresses MockGlobalAddresses *MockGlobalAddresses MockBackendServices *MockBackendServices MockBetaBackendServices *MockBetaBackendServices MockAlphaBackendServices *MockAlphaBackendServices MockRegionBackendServices *MockRegionBackendServices MockAlphaRegionBackendServices *MockAlphaRegionBackendServices MockBetaRegionBackendServices *MockBetaRegionBackendServices MockDisks *MockDisks MockRegionDisks *MockRegionDisks MockAlphaFirewalls *MockAlphaFirewalls MockBetaFirewalls *MockBetaFirewalls MockFirewalls *MockFirewalls MockAlphaNetworkFirewallPolicies *MockAlphaNetworkFirewallPolicies MockAlphaRegionNetworkFirewallPolicies *MockAlphaRegionNetworkFirewallPolicies MockForwardingRules *MockForwardingRules MockAlphaForwardingRules *MockAlphaForwardingRules MockBetaForwardingRules *MockBetaForwardingRules MockAlphaGlobalForwardingRules *MockAlphaGlobalForwardingRules MockBetaGlobalForwardingRules *MockBetaGlobalForwardingRules MockGlobalForwardingRules *MockGlobalForwardingRules MockHealthChecks *MockHealthChecks MockAlphaHealthChecks *MockAlphaHealthChecks MockBetaHealthChecks *MockBetaHealthChecks MockAlphaRegionHealthChecks *MockAlphaRegionHealthChecks MockBetaRegionHealthChecks *MockBetaRegionHealthChecks MockRegionHealthChecks *MockRegionHealthChecks MockHttpHealthChecks *MockHttpHealthChecks MockHttpsHealthChecks *MockHttpsHealthChecks MockInstanceGroups *MockInstanceGroups MockInstances *MockInstances MockBetaInstances *MockBetaInstances MockAlphaInstances *MockAlphaInstances MockInstanceGroupManagers *MockInstanceGroupManagers MockInstanceTemplates *MockInstanceTemplates MockImages *MockImages MockBetaImages *MockBetaImages MockAlphaImages *MockAlphaImages MockAlphaNetworks *MockAlphaNetworks MockBetaNetworks *MockBetaNetworks MockNetworks *MockNetworks MockAlphaNetworkEndpointGroups *MockAlphaNetworkEndpointGroups MockBetaNetworkEndpointGroups *MockBetaNetworkEndpointGroups MockNetworkEndpointGroups *MockNetworkEndpointGroups MockAlphaGlobalNetworkEndpointGroups *MockAlphaGlobalNetworkEndpointGroups MockBetaGlobalNetworkEndpointGroups *MockBetaGlobalNetworkEndpointGroups MockGlobalNetworkEndpointGroups *MockGlobalNetworkEndpointGroups MockAlphaRegionNetworkEndpointGroups *MockAlphaRegionNetworkEndpointGroups MockBetaRegionNetworkEndpointGroups *MockBetaRegionNetworkEndpointGroups MockRegionNetworkEndpointGroups *MockRegionNetworkEndpointGroups MockProjects *MockProjects MockRegions *MockRegions MockAlphaRouters *MockAlphaRouters MockBetaRouters *MockBetaRouters MockRouters *MockRouters MockRoutes *MockRoutes MockBetaSecurityPolicies *MockBetaSecurityPolicies MockServiceAttachments *MockServiceAttachments MockBetaServiceAttachments *MockBetaServiceAttachments MockAlphaServiceAttachments *MockAlphaServiceAttachments MockSslCertificates *MockSslCertificates MockBetaSslCertificates *MockBetaSslCertificates MockAlphaSslCertificates *MockAlphaSslCertificates MockAlphaRegionSslCertificates *MockAlphaRegionSslCertificates MockBetaRegionSslCertificates *MockBetaRegionSslCertificates MockRegionSslCertificates *MockRegionSslCertificates MockSslPolicies *MockSslPolicies MockRegionSslPolicies *MockRegionSslPolicies MockAlphaSubnetworks *MockAlphaSubnetworks MockBetaSubnetworks *MockBetaSubnetworks MockSubnetworks *MockSubnetworks MockAlphaTargetHttpProxies *MockAlphaTargetHttpProxies MockBetaTargetHttpProxies *MockBetaTargetHttpProxies MockTargetHttpProxies *MockTargetHttpProxies MockAlphaRegionTargetHttpProxies *MockAlphaRegionTargetHttpProxies MockBetaRegionTargetHttpProxies *MockBetaRegionTargetHttpProxies MockRegionTargetHttpProxies *MockRegionTargetHttpProxies MockTargetHttpsProxies *MockTargetHttpsProxies MockAlphaTargetHttpsProxies *MockAlphaTargetHttpsProxies MockBetaTargetHttpsProxies *MockBetaTargetHttpsProxies MockAlphaRegionTargetHttpsProxies *MockAlphaRegionTargetHttpsProxies MockBetaRegionTargetHttpsProxies *MockBetaRegionTargetHttpsProxies MockRegionTargetHttpsProxies *MockRegionTargetHttpsProxies MockTargetPools *MockTargetPools MockAlphaTargetTcpProxies *MockAlphaTargetTcpProxies MockBetaTargetTcpProxies *MockBetaTargetTcpProxies MockTargetTcpProxies *MockTargetTcpProxies MockAlphaUrlMaps *MockAlphaUrlMaps MockBetaUrlMaps *MockBetaUrlMaps MockUrlMaps *MockUrlMaps MockAlphaRegionUrlMaps *MockAlphaRegionUrlMaps MockBetaRegionUrlMaps *MockBetaRegionUrlMaps MockRegionUrlMaps *MockRegionUrlMaps MockZones *MockZones MockTcpRoutes *MockTcpRoutes MockBetaTcpRoutes *MockBetaTcpRoutes MockMeshes *MockMeshes MockBetaMeshes *MockBetaMeshes }
MockGCE is the mock for the compute API.
func NewMockGCE ¶
func NewMockGCE(projectRouter ProjectRouter) *MockGCE
NewMockGCE returns a new mock for GCE.
func (*MockGCE) AlphaAddresses ¶
func (mock *MockGCE) AlphaAddresses() AlphaAddresses
AlphaAddresses returns the interface for the alpha Addresses.
func (*MockGCE) AlphaBackendServices ¶
func (mock *MockGCE) AlphaBackendServices() AlphaBackendServices
AlphaBackendServices returns the interface for the alpha BackendServices.
func (*MockGCE) AlphaFirewalls ¶
func (mock *MockGCE) AlphaFirewalls() AlphaFirewalls
AlphaFirewalls returns the interface for the alpha Firewalls.
func (*MockGCE) AlphaForwardingRules ¶
func (mock *MockGCE) AlphaForwardingRules() AlphaForwardingRules
AlphaForwardingRules returns the interface for the alpha ForwardingRules.
func (*MockGCE) AlphaGlobalAddresses ¶
func (mock *MockGCE) AlphaGlobalAddresses() AlphaGlobalAddresses
AlphaGlobalAddresses returns the interface for the alpha GlobalAddresses.
func (*MockGCE) AlphaGlobalForwardingRules ¶
func (mock *MockGCE) AlphaGlobalForwardingRules() AlphaGlobalForwardingRules
AlphaGlobalForwardingRules returns the interface for the alpha GlobalForwardingRules.
func (*MockGCE) AlphaGlobalNetworkEndpointGroups ¶ added in v1.25.0
func (mock *MockGCE) AlphaGlobalNetworkEndpointGroups() AlphaGlobalNetworkEndpointGroups
AlphaGlobalNetworkEndpointGroups returns the interface for the alpha GlobalNetworkEndpointGroups.
func (*MockGCE) AlphaHealthChecks ¶
func (mock *MockGCE) AlphaHealthChecks() AlphaHealthChecks
AlphaHealthChecks returns the interface for the alpha HealthChecks.
func (*MockGCE) AlphaImages ¶ added in v1.17.0
func (mock *MockGCE) AlphaImages() AlphaImages
AlphaImages returns the interface for the alpha Images.
func (*MockGCE) AlphaInstances ¶
func (mock *MockGCE) AlphaInstances() AlphaInstances
AlphaInstances returns the interface for the alpha Instances.
func (*MockGCE) AlphaNetworkEndpointGroups ¶
func (mock *MockGCE) AlphaNetworkEndpointGroups() AlphaNetworkEndpointGroups
AlphaNetworkEndpointGroups returns the interface for the alpha NetworkEndpointGroups.
func (*MockGCE) AlphaNetworkFirewallPolicies ¶ added in v1.17.0
func (mock *MockGCE) AlphaNetworkFirewallPolicies() AlphaNetworkFirewallPolicies
AlphaNetworkFirewallPolicies returns the interface for the alpha NetworkFirewallPolicies.
func (*MockGCE) AlphaNetworks ¶
func (mock *MockGCE) AlphaNetworks() AlphaNetworks
AlphaNetworks returns the interface for the alpha Networks.
func (*MockGCE) AlphaRegionBackendServices ¶
func (mock *MockGCE) AlphaRegionBackendServices() AlphaRegionBackendServices
AlphaRegionBackendServices returns the interface for the alpha RegionBackendServices.
func (*MockGCE) AlphaRegionHealthChecks ¶
func (mock *MockGCE) AlphaRegionHealthChecks() AlphaRegionHealthChecks
AlphaRegionHealthChecks returns the interface for the alpha RegionHealthChecks.
func (*MockGCE) AlphaRegionNetworkEndpointGroups ¶ added in v1.29.0
func (mock *MockGCE) AlphaRegionNetworkEndpointGroups() AlphaRegionNetworkEndpointGroups
AlphaRegionNetworkEndpointGroups returns the interface for the alpha RegionNetworkEndpointGroups.
func (*MockGCE) AlphaRegionNetworkFirewallPolicies ¶ added in v1.17.0
func (mock *MockGCE) AlphaRegionNetworkFirewallPolicies() AlphaRegionNetworkFirewallPolicies
AlphaRegionNetworkFirewallPolicies returns the interface for the alpha RegionNetworkFirewallPolicies.
func (*MockGCE) AlphaRegionSslCertificates ¶
func (mock *MockGCE) AlphaRegionSslCertificates() AlphaRegionSslCertificates
AlphaRegionSslCertificates returns the interface for the alpha RegionSslCertificates.
func (*MockGCE) AlphaRegionTargetHttpProxies ¶
func (mock *MockGCE) AlphaRegionTargetHttpProxies() AlphaRegionTargetHttpProxies
AlphaRegionTargetHttpProxies returns the interface for the alpha RegionTargetHttpProxies.
func (*MockGCE) AlphaRegionTargetHttpsProxies ¶
func (mock *MockGCE) AlphaRegionTargetHttpsProxies() AlphaRegionTargetHttpsProxies
AlphaRegionTargetHttpsProxies returns the interface for the alpha RegionTargetHttpsProxies.
func (*MockGCE) AlphaRegionUrlMaps ¶
func (mock *MockGCE) AlphaRegionUrlMaps() AlphaRegionUrlMaps
AlphaRegionUrlMaps returns the interface for the alpha RegionUrlMaps.
func (*MockGCE) AlphaRouters ¶ added in v1.17.0
func (mock *MockGCE) AlphaRouters() AlphaRouters
AlphaRouters returns the interface for the alpha Routers.
func (*MockGCE) AlphaServiceAttachments ¶
func (mock *MockGCE) AlphaServiceAttachments() AlphaServiceAttachments
AlphaServiceAttachments returns the interface for the alpha ServiceAttachments.
func (*MockGCE) AlphaSslCertificates ¶
func (mock *MockGCE) AlphaSslCertificates() AlphaSslCertificates
AlphaSslCertificates returns the interface for the alpha SslCertificates.
func (*MockGCE) AlphaSubnetworks ¶
func (mock *MockGCE) AlphaSubnetworks() AlphaSubnetworks
AlphaSubnetworks returns the interface for the alpha Subnetworks.
func (*MockGCE) AlphaTargetHttpProxies ¶
func (mock *MockGCE) AlphaTargetHttpProxies() AlphaTargetHttpProxies
AlphaTargetHttpProxies returns the interface for the alpha TargetHttpProxies.
func (*MockGCE) AlphaTargetHttpsProxies ¶
func (mock *MockGCE) AlphaTargetHttpsProxies() AlphaTargetHttpsProxies
AlphaTargetHttpsProxies returns the interface for the alpha TargetHttpsProxies.
func (*MockGCE) AlphaTargetTcpProxies ¶
func (mock *MockGCE) AlphaTargetTcpProxies() AlphaTargetTcpProxies
AlphaTargetTcpProxies returns the interface for the alpha TargetTcpProxies.
func (*MockGCE) AlphaUrlMaps ¶
func (mock *MockGCE) AlphaUrlMaps() AlphaUrlMaps
AlphaUrlMaps returns the interface for the alpha UrlMaps.
func (*MockGCE) BackendServices ¶
func (mock *MockGCE) BackendServices() BackendServices
BackendServices returns the interface for the ga BackendServices.
func (*MockGCE) BetaAddresses ¶
func (mock *MockGCE) BetaAddresses() BetaAddresses
BetaAddresses returns the interface for the beta Addresses.
func (*MockGCE) BetaBackendServices ¶
func (mock *MockGCE) BetaBackendServices() BetaBackendServices
BetaBackendServices returns the interface for the beta BackendServices.
func (*MockGCE) BetaFirewalls ¶
func (mock *MockGCE) BetaFirewalls() BetaFirewalls
BetaFirewalls returns the interface for the beta Firewalls.
func (*MockGCE) BetaForwardingRules ¶
func (mock *MockGCE) BetaForwardingRules() BetaForwardingRules
BetaForwardingRules returns the interface for the beta ForwardingRules.
func (*MockGCE) BetaGlobalAddresses ¶
func (mock *MockGCE) BetaGlobalAddresses() BetaGlobalAddresses
BetaGlobalAddresses returns the interface for the beta GlobalAddresses.
func (*MockGCE) BetaGlobalForwardingRules ¶
func (mock *MockGCE) BetaGlobalForwardingRules() BetaGlobalForwardingRules
BetaGlobalForwardingRules returns the interface for the beta GlobalForwardingRules.
func (*MockGCE) BetaGlobalNetworkEndpointGroups ¶ added in v1.25.0
func (mock *MockGCE) BetaGlobalNetworkEndpointGroups() BetaGlobalNetworkEndpointGroups
BetaGlobalNetworkEndpointGroups returns the interface for the beta GlobalNetworkEndpointGroups.
func (*MockGCE) BetaHealthChecks ¶
func (mock *MockGCE) BetaHealthChecks() BetaHealthChecks
BetaHealthChecks returns the interface for the beta HealthChecks.
func (*MockGCE) BetaImages ¶ added in v1.17.0
func (mock *MockGCE) BetaImages() BetaImages
BetaImages returns the interface for the beta Images.
func (*MockGCE) BetaInstances ¶
func (mock *MockGCE) BetaInstances() BetaInstances
BetaInstances returns the interface for the beta Instances.
func (*MockGCE) BetaMeshes ¶ added in v1.25.0
func (mock *MockGCE) BetaMeshes() BetaMeshes
BetaMeshes returns the interface for the beta Meshes.
func (*MockGCE) BetaNetworkEndpointGroups ¶
func (mock *MockGCE) BetaNetworkEndpointGroups() BetaNetworkEndpointGroups
BetaNetworkEndpointGroups returns the interface for the beta NetworkEndpointGroups.
func (*MockGCE) BetaNetworks ¶
func (mock *MockGCE) BetaNetworks() BetaNetworks
BetaNetworks returns the interface for the beta Networks.
func (*MockGCE) BetaRegionBackendServices ¶
func (mock *MockGCE) BetaRegionBackendServices() BetaRegionBackendServices
BetaRegionBackendServices returns the interface for the beta RegionBackendServices.
func (*MockGCE) BetaRegionHealthChecks ¶
func (mock *MockGCE) BetaRegionHealthChecks() BetaRegionHealthChecks
BetaRegionHealthChecks returns the interface for the beta RegionHealthChecks.
func (*MockGCE) BetaRegionNetworkEndpointGroups ¶ added in v1.29.0
func (mock *MockGCE) BetaRegionNetworkEndpointGroups() BetaRegionNetworkEndpointGroups
BetaRegionNetworkEndpointGroups returns the interface for the beta RegionNetworkEndpointGroups.
func (*MockGCE) BetaRegionSslCertificates ¶
func (mock *MockGCE) BetaRegionSslCertificates() BetaRegionSslCertificates
BetaRegionSslCertificates returns the interface for the beta RegionSslCertificates.
func (*MockGCE) BetaRegionTargetHttpProxies ¶
func (mock *MockGCE) BetaRegionTargetHttpProxies() BetaRegionTargetHttpProxies
BetaRegionTargetHttpProxies returns the interface for the beta RegionTargetHttpProxies.
func (*MockGCE) BetaRegionTargetHttpsProxies ¶
func (mock *MockGCE) BetaRegionTargetHttpsProxies() BetaRegionTargetHttpsProxies
BetaRegionTargetHttpsProxies returns the interface for the beta RegionTargetHttpsProxies.
func (*MockGCE) BetaRegionUrlMaps ¶
func (mock *MockGCE) BetaRegionUrlMaps() BetaRegionUrlMaps
BetaRegionUrlMaps returns the interface for the beta RegionUrlMaps.
func (*MockGCE) BetaRouters ¶ added in v1.17.0
func (mock *MockGCE) BetaRouters() BetaRouters
BetaRouters returns the interface for the beta Routers.
func (*MockGCE) BetaSecurityPolicies ¶
func (mock *MockGCE) BetaSecurityPolicies() BetaSecurityPolicies
BetaSecurityPolicies returns the interface for the beta SecurityPolicies.
func (*MockGCE) BetaServiceAttachments ¶ added in v1.15.0
func (mock *MockGCE) BetaServiceAttachments() BetaServiceAttachments
BetaServiceAttachments returns the interface for the beta ServiceAttachments.
func (*MockGCE) BetaSslCertificates ¶
func (mock *MockGCE) BetaSslCertificates() BetaSslCertificates
BetaSslCertificates returns the interface for the beta SslCertificates.
func (*MockGCE) BetaSubnetworks ¶
func (mock *MockGCE) BetaSubnetworks() BetaSubnetworks
BetaSubnetworks returns the interface for the beta Subnetworks.
func (*MockGCE) BetaTargetHttpProxies ¶
func (mock *MockGCE) BetaTargetHttpProxies() BetaTargetHttpProxies
BetaTargetHttpProxies returns the interface for the beta TargetHttpProxies.
func (*MockGCE) BetaTargetHttpsProxies ¶
func (mock *MockGCE) BetaTargetHttpsProxies() BetaTargetHttpsProxies
BetaTargetHttpsProxies returns the interface for the beta TargetHttpsProxies.
func (*MockGCE) BetaTargetTcpProxies ¶
func (mock *MockGCE) BetaTargetTcpProxies() BetaTargetTcpProxies
BetaTargetTcpProxies returns the interface for the beta TargetTcpProxies.
func (*MockGCE) BetaTcpRoutes ¶ added in v1.25.0
func (mock *MockGCE) BetaTcpRoutes() BetaTcpRoutes
BetaTcpRoutes returns the interface for the beta TcpRoutes.
func (*MockGCE) BetaUrlMaps ¶
func (mock *MockGCE) BetaUrlMaps() BetaUrlMaps
BetaUrlMaps returns the interface for the beta UrlMaps.
func (*MockGCE) ForwardingRules ¶
func (mock *MockGCE) ForwardingRules() ForwardingRules
ForwardingRules returns the interface for the ga ForwardingRules.
func (*MockGCE) GlobalAddresses ¶
func (mock *MockGCE) GlobalAddresses() GlobalAddresses
GlobalAddresses returns the interface for the ga GlobalAddresses.
func (*MockGCE) GlobalForwardingRules ¶
func (mock *MockGCE) GlobalForwardingRules() GlobalForwardingRules
GlobalForwardingRules returns the interface for the ga GlobalForwardingRules.
func (*MockGCE) GlobalNetworkEndpointGroups ¶ added in v1.25.0
func (mock *MockGCE) GlobalNetworkEndpointGroups() GlobalNetworkEndpointGroups
GlobalNetworkEndpointGroups returns the interface for the ga GlobalNetworkEndpointGroups.
func (*MockGCE) HealthChecks ¶
func (mock *MockGCE) HealthChecks() HealthChecks
HealthChecks returns the interface for the ga HealthChecks.
func (*MockGCE) HttpHealthChecks ¶
func (mock *MockGCE) HttpHealthChecks() HttpHealthChecks
HttpHealthChecks returns the interface for the ga HttpHealthChecks.
func (*MockGCE) HttpsHealthChecks ¶
func (mock *MockGCE) HttpsHealthChecks() HttpsHealthChecks
HttpsHealthChecks returns the interface for the ga HttpsHealthChecks.
func (*MockGCE) InstanceGroupManagers ¶ added in v1.23.0
func (mock *MockGCE) InstanceGroupManagers() InstanceGroupManagers
InstanceGroupManagers returns the interface for the ga InstanceGroupManagers.
func (*MockGCE) InstanceGroups ¶
func (mock *MockGCE) InstanceGroups() InstanceGroups
InstanceGroups returns the interface for the ga InstanceGroups.
func (*MockGCE) InstanceTemplates ¶ added in v1.23.0
func (mock *MockGCE) InstanceTemplates() InstanceTemplates
InstanceTemplates returns the interface for the ga InstanceTemplates.
func (*MockGCE) NetworkEndpointGroups ¶
func (mock *MockGCE) NetworkEndpointGroups() NetworkEndpointGroups
NetworkEndpointGroups returns the interface for the ga NetworkEndpointGroups.
func (*MockGCE) RegionBackendServices ¶
func (mock *MockGCE) RegionBackendServices() RegionBackendServices
RegionBackendServices returns the interface for the ga RegionBackendServices.
func (*MockGCE) RegionDisks ¶
func (mock *MockGCE) RegionDisks() RegionDisks
RegionDisks returns the interface for the ga RegionDisks.
func (*MockGCE) RegionHealthChecks ¶
func (mock *MockGCE) RegionHealthChecks() RegionHealthChecks
RegionHealthChecks returns the interface for the ga RegionHealthChecks.
func (*MockGCE) RegionNetworkEndpointGroups ¶ added in v1.29.0
func (mock *MockGCE) RegionNetworkEndpointGroups() RegionNetworkEndpointGroups
RegionNetworkEndpointGroups returns the interface for the ga RegionNetworkEndpointGroups.
func (*MockGCE) RegionSslCertificates ¶
func (mock *MockGCE) RegionSslCertificates() RegionSslCertificates
RegionSslCertificates returns the interface for the ga RegionSslCertificates.
func (*MockGCE) RegionSslPolicies ¶ added in v1.25.0
func (mock *MockGCE) RegionSslPolicies() RegionSslPolicies
RegionSslPolicies returns the interface for the ga RegionSslPolicies.
func (*MockGCE) RegionTargetHttpProxies ¶
func (mock *MockGCE) RegionTargetHttpProxies() RegionTargetHttpProxies
RegionTargetHttpProxies returns the interface for the ga RegionTargetHttpProxies.
func (*MockGCE) RegionTargetHttpsProxies ¶
func (mock *MockGCE) RegionTargetHttpsProxies() RegionTargetHttpsProxies
RegionTargetHttpsProxies returns the interface for the ga RegionTargetHttpsProxies.
func (*MockGCE) RegionUrlMaps ¶
func (mock *MockGCE) RegionUrlMaps() RegionUrlMaps
RegionUrlMaps returns the interface for the ga RegionUrlMaps.
func (*MockGCE) ServiceAttachments ¶ added in v1.18.0
func (mock *MockGCE) ServiceAttachments() ServiceAttachments
ServiceAttachments returns the interface for the ga ServiceAttachments.
func (*MockGCE) SslCertificates ¶
func (mock *MockGCE) SslCertificates() SslCertificates
SslCertificates returns the interface for the ga SslCertificates.
func (*MockGCE) SslPolicies ¶
func (mock *MockGCE) SslPolicies() SslPolicies
SslPolicies returns the interface for the ga SslPolicies.
func (*MockGCE) Subnetworks ¶
func (mock *MockGCE) Subnetworks() Subnetworks
Subnetworks returns the interface for the ga Subnetworks.
func (*MockGCE) TargetHttpProxies ¶
func (mock *MockGCE) TargetHttpProxies() TargetHttpProxies
TargetHttpProxies returns the interface for the ga TargetHttpProxies.
func (*MockGCE) TargetHttpsProxies ¶
func (mock *MockGCE) TargetHttpsProxies() TargetHttpsProxies
TargetHttpsProxies returns the interface for the ga TargetHttpsProxies.
func (*MockGCE) TargetPools ¶
func (mock *MockGCE) TargetPools() TargetPools
TargetPools returns the interface for the ga TargetPools.
func (*MockGCE) TargetTcpProxies ¶ added in v1.17.0
func (mock *MockGCE) TargetTcpProxies() TargetTcpProxies
TargetTcpProxies returns the interface for the ga TargetTcpProxies.
type MockGlobalAddresses ¶
type MockGlobalAddresses struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockGlobalAddressesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockGlobalAddresses, options ...Option) (bool, *computega.Address, error) ListHook func(ctx context.Context, fl *filter.F, m *MockGlobalAddresses, options ...Option) (bool, []*computega.Address, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.Address, m *MockGlobalAddresses, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockGlobalAddresses, options ...Option) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockGlobalAddresses is the mock for GlobalAddresses.
func NewMockGlobalAddresses ¶
func NewMockGlobalAddresses(pr ProjectRouter, objs map[meta.Key]*MockGlobalAddressesObj) *MockGlobalAddresses
NewMockGlobalAddresses returns a new mock for GlobalAddresses.
func (*MockGlobalAddresses) Get ¶
func (m *MockGlobalAddresses) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Address, error)
Get returns the object from the mock.
func (*MockGlobalAddresses) Insert ¶
func (m *MockGlobalAddresses) Insert(ctx context.Context, key *meta.Key, obj *computega.Address, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockGlobalAddresses) List ¶
func (m *MockGlobalAddresses) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Address, error)
List all of the objects in the mock.
func (*MockGlobalAddresses) Obj ¶
func (m *MockGlobalAddresses) Obj(o *computega.Address) *MockGlobalAddressesObj
Obj wraps the object for use in the mock.
type MockGlobalAddressesObj ¶
type MockGlobalAddressesObj struct {
Obj interface{}
}
MockGlobalAddressesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockGlobalAddressesObj) ToAlpha ¶
func (m *MockGlobalAddressesObj) ToAlpha() *computealpha.Address
ToAlpha retrieves the given version of the object.
func (*MockGlobalAddressesObj) ToBeta ¶
func (m *MockGlobalAddressesObj) ToBeta() *computebeta.Address
ToBeta retrieves the given version of the object.
func (*MockGlobalAddressesObj) ToGA ¶
func (m *MockGlobalAddressesObj) ToGA() *computega.Address
ToGA retrieves the given version of the object.
type MockGlobalForwardingRules ¶
type MockGlobalForwardingRules struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockGlobalForwardingRulesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockGlobalForwardingRules, options ...Option) (bool, *computega.ForwardingRule, error) ListHook func(ctx context.Context, fl *filter.F, m *MockGlobalForwardingRules, options ...Option) (bool, []*computega.ForwardingRule, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.ForwardingRule, m *MockGlobalForwardingRules, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockGlobalForwardingRules, options ...Option) (bool, error) SetLabelsHook func(context.Context, *meta.Key, *computega.GlobalSetLabelsRequest, *MockGlobalForwardingRules, ...Option) error SetTargetHook func(context.Context, *meta.Key, *computega.TargetReference, *MockGlobalForwardingRules, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockGlobalForwardingRules is the mock for GlobalForwardingRules.
func NewMockGlobalForwardingRules ¶
func NewMockGlobalForwardingRules(pr ProjectRouter, objs map[meta.Key]*MockGlobalForwardingRulesObj) *MockGlobalForwardingRules
NewMockGlobalForwardingRules returns a new mock for GlobalForwardingRules.
func (*MockGlobalForwardingRules) Delete ¶
func (m *MockGlobalForwardingRules) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockGlobalForwardingRules) Get ¶
func (m *MockGlobalForwardingRules) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.ForwardingRule, error)
Get returns the object from the mock.
func (*MockGlobalForwardingRules) Insert ¶
func (m *MockGlobalForwardingRules) Insert(ctx context.Context, key *meta.Key, obj *computega.ForwardingRule, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockGlobalForwardingRules) List ¶
func (m *MockGlobalForwardingRules) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.ForwardingRule, error)
List all of the objects in the mock.
func (*MockGlobalForwardingRules) Obj ¶
func (m *MockGlobalForwardingRules) Obj(o *computega.ForwardingRule) *MockGlobalForwardingRulesObj
Obj wraps the object for use in the mock.
type MockGlobalForwardingRulesObj ¶
type MockGlobalForwardingRulesObj struct {
Obj interface{}
}
MockGlobalForwardingRulesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockGlobalForwardingRulesObj) ToAlpha ¶
func (m *MockGlobalForwardingRulesObj) ToAlpha() *computealpha.ForwardingRule
ToAlpha retrieves the given version of the object.
func (*MockGlobalForwardingRulesObj) ToBeta ¶
func (m *MockGlobalForwardingRulesObj) ToBeta() *computebeta.ForwardingRule
ToBeta retrieves the given version of the object.
func (*MockGlobalForwardingRulesObj) ToGA ¶
func (m *MockGlobalForwardingRulesObj) ToGA() *computega.ForwardingRule
ToGA retrieves the given version of the object.
type MockGlobalNetworkEndpointGroups ¶ added in v1.25.0
type MockGlobalNetworkEndpointGroups struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockGlobalNetworkEndpointGroupsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockGlobalNetworkEndpointGroups, options ...Option) (bool, *computega.NetworkEndpointGroup, error) ListHook func(ctx context.Context, fl *filter.F, m *MockGlobalNetworkEndpointGroups, options ...Option) (bool, []*computega.NetworkEndpointGroup, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.NetworkEndpointGroup, m *MockGlobalNetworkEndpointGroups, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockGlobalNetworkEndpointGroups, options ...Option) (bool, error) AttachNetworkEndpointsHook func(context.Context, *meta.Key, *computega.GlobalNetworkEndpointGroupsAttachEndpointsRequest, *MockGlobalNetworkEndpointGroups, ...Option) error DetachNetworkEndpointsHook func(context.Context, *meta.Key, *computega.GlobalNetworkEndpointGroupsDetachEndpointsRequest, *MockGlobalNetworkEndpointGroups, ...Option) error ListNetworkEndpointsHook func(context.Context, *meta.Key, *filter.F, *MockGlobalNetworkEndpointGroups, ...Option) ([]*computega.NetworkEndpointWithHealthStatus, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockGlobalNetworkEndpointGroups is the mock for GlobalNetworkEndpointGroups.
func NewMockGlobalNetworkEndpointGroups ¶ added in v1.25.0
func NewMockGlobalNetworkEndpointGroups(pr ProjectRouter, objs map[meta.Key]*MockGlobalNetworkEndpointGroupsObj) *MockGlobalNetworkEndpointGroups
NewMockGlobalNetworkEndpointGroups returns a new mock for GlobalNetworkEndpointGroups.
func (*MockGlobalNetworkEndpointGroups) AttachNetworkEndpoints ¶ added in v1.25.0
func (m *MockGlobalNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computega.GlobalNetworkEndpointGroupsAttachEndpointsRequest, options ...Option) error
AttachNetworkEndpoints is a mock for the corresponding method.
func (*MockGlobalNetworkEndpointGroups) Delete ¶ added in v1.25.0
func (m *MockGlobalNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockGlobalNetworkEndpointGroups) DetachNetworkEndpoints ¶ added in v1.25.0
func (m *MockGlobalNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computega.GlobalNetworkEndpointGroupsDetachEndpointsRequest, options ...Option) error
DetachNetworkEndpoints is a mock for the corresponding method.
func (*MockGlobalNetworkEndpointGroups) Get ¶ added in v1.25.0
func (m *MockGlobalNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.NetworkEndpointGroup, error)
Get returns the object from the mock.
func (*MockGlobalNetworkEndpointGroups) Insert ¶ added in v1.25.0
func (m *MockGlobalNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computega.NetworkEndpointGroup, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockGlobalNetworkEndpointGroups) List ¶ added in v1.25.0
func (m *MockGlobalNetworkEndpointGroups) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointGroup, error)
List all of the objects in the mock.
func (*MockGlobalNetworkEndpointGroups) ListNetworkEndpoints ¶ added in v1.25.0
func (m *MockGlobalNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a mock for the corresponding method.
func (*MockGlobalNetworkEndpointGroups) Obj ¶ added in v1.25.0
func (m *MockGlobalNetworkEndpointGroups) Obj(o *computega.NetworkEndpointGroup) *MockGlobalNetworkEndpointGroupsObj
Obj wraps the object for use in the mock.
type MockGlobalNetworkEndpointGroupsObj ¶ added in v1.25.0
type MockGlobalNetworkEndpointGroupsObj struct {
Obj interface{}
}
MockGlobalNetworkEndpointGroupsObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockGlobalNetworkEndpointGroupsObj) ToAlpha ¶ added in v1.25.0
func (m *MockGlobalNetworkEndpointGroupsObj) ToAlpha() *computealpha.NetworkEndpointGroup
ToAlpha retrieves the given version of the object.
func (*MockGlobalNetworkEndpointGroupsObj) ToBeta ¶ added in v1.25.0
func (m *MockGlobalNetworkEndpointGroupsObj) ToBeta() *computebeta.NetworkEndpointGroup
ToBeta retrieves the given version of the object.
func (*MockGlobalNetworkEndpointGroupsObj) ToGA ¶ added in v1.25.0
func (m *MockGlobalNetworkEndpointGroupsObj) ToGA() *computega.NetworkEndpointGroup
ToGA retrieves the given version of the object.
type MockHealthChecks ¶
type MockHealthChecks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockHealthChecksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockHealthChecks, options ...Option) (bool, *computega.HealthCheck, error) ListHook func(ctx context.Context, fl *filter.F, m *MockHealthChecks, options ...Option) (bool, []*computega.HealthCheck, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.HealthCheck, m *MockHealthChecks, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockHealthChecks, options ...Option) (bool, error) UpdateHook func(context.Context, *meta.Key, *computega.HealthCheck, *MockHealthChecks, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockHealthChecks is the mock for HealthChecks.
func NewMockHealthChecks ¶
func NewMockHealthChecks(pr ProjectRouter, objs map[meta.Key]*MockHealthChecksObj) *MockHealthChecks
NewMockHealthChecks returns a new mock for HealthChecks.
func (*MockHealthChecks) Get ¶
func (m *MockHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.HealthCheck, error)
Get returns the object from the mock.
func (*MockHealthChecks) Insert ¶
func (m *MockHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computega.HealthCheck, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockHealthChecks) List ¶
func (m *MockHealthChecks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.HealthCheck, error)
List all of the objects in the mock.
func (*MockHealthChecks) Obj ¶
func (m *MockHealthChecks) Obj(o *computega.HealthCheck) *MockHealthChecksObj
Obj wraps the object for use in the mock.
type MockHealthChecksObj ¶
type MockHealthChecksObj struct {
Obj interface{}
}
MockHealthChecksObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockHealthChecksObj) ToAlpha ¶
func (m *MockHealthChecksObj) ToAlpha() *computealpha.HealthCheck
ToAlpha retrieves the given version of the object.
func (*MockHealthChecksObj) ToBeta ¶
func (m *MockHealthChecksObj) ToBeta() *computebeta.HealthCheck
ToBeta retrieves the given version of the object.
func (*MockHealthChecksObj) ToGA ¶
func (m *MockHealthChecksObj) ToGA() *computega.HealthCheck
ToGA retrieves the given version of the object.
type MockHttpHealthChecks ¶
type MockHttpHealthChecks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockHttpHealthChecksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockHttpHealthChecks, options ...Option) (bool, *computega.HttpHealthCheck, error) ListHook func(ctx context.Context, fl *filter.F, m *MockHttpHealthChecks, options ...Option) (bool, []*computega.HttpHealthCheck, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.HttpHealthCheck, m *MockHttpHealthChecks, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockHttpHealthChecks, options ...Option) (bool, error) UpdateHook func(context.Context, *meta.Key, *computega.HttpHealthCheck, *MockHttpHealthChecks, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockHttpHealthChecks is the mock for HttpHealthChecks.
func NewMockHttpHealthChecks ¶
func NewMockHttpHealthChecks(pr ProjectRouter, objs map[meta.Key]*MockHttpHealthChecksObj) *MockHttpHealthChecks
NewMockHttpHealthChecks returns a new mock for HttpHealthChecks.
func (*MockHttpHealthChecks) Get ¶
func (m *MockHttpHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.HttpHealthCheck, error)
Get returns the object from the mock.
func (*MockHttpHealthChecks) Insert ¶
func (m *MockHttpHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computega.HttpHealthCheck, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockHttpHealthChecks) List ¶
func (m *MockHttpHealthChecks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.HttpHealthCheck, error)
List all of the objects in the mock.
func (*MockHttpHealthChecks) Obj ¶
func (m *MockHttpHealthChecks) Obj(o *computega.HttpHealthCheck) *MockHttpHealthChecksObj
Obj wraps the object for use in the mock.
type MockHttpHealthChecksObj ¶
type MockHttpHealthChecksObj struct {
Obj interface{}
}
MockHttpHealthChecksObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockHttpHealthChecksObj) ToGA ¶
func (m *MockHttpHealthChecksObj) ToGA() *computega.HttpHealthCheck
ToGA retrieves the given version of the object.
type MockHttpsHealthChecks ¶
type MockHttpsHealthChecks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockHttpsHealthChecksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockHttpsHealthChecks, options ...Option) (bool, *computega.HttpsHealthCheck, error) ListHook func(ctx context.Context, fl *filter.F, m *MockHttpsHealthChecks, options ...Option) (bool, []*computega.HttpsHealthCheck, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.HttpsHealthCheck, m *MockHttpsHealthChecks, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockHttpsHealthChecks, options ...Option) (bool, error) UpdateHook func(context.Context, *meta.Key, *computega.HttpsHealthCheck, *MockHttpsHealthChecks, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockHttpsHealthChecks is the mock for HttpsHealthChecks.
func NewMockHttpsHealthChecks ¶
func NewMockHttpsHealthChecks(pr ProjectRouter, objs map[meta.Key]*MockHttpsHealthChecksObj) *MockHttpsHealthChecks
NewMockHttpsHealthChecks returns a new mock for HttpsHealthChecks.
func (*MockHttpsHealthChecks) Get ¶
func (m *MockHttpsHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.HttpsHealthCheck, error)
Get returns the object from the mock.
func (*MockHttpsHealthChecks) Insert ¶
func (m *MockHttpsHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computega.HttpsHealthCheck, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockHttpsHealthChecks) List ¶
func (m *MockHttpsHealthChecks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.HttpsHealthCheck, error)
List all of the objects in the mock.
func (*MockHttpsHealthChecks) Obj ¶
func (m *MockHttpsHealthChecks) Obj(o *computega.HttpsHealthCheck) *MockHttpsHealthChecksObj
Obj wraps the object for use in the mock.
type MockHttpsHealthChecksObj ¶
type MockHttpsHealthChecksObj struct {
Obj interface{}
}
MockHttpsHealthChecksObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockHttpsHealthChecksObj) ToGA ¶
func (m *MockHttpsHealthChecksObj) ToGA() *computega.HttpsHealthCheck
ToGA retrieves the given version of the object.
type MockImages ¶ added in v1.17.0
type MockImages struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockImagesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockImages, options ...Option) (bool, *computega.Image, error) ListHook func(ctx context.Context, fl *filter.F, m *MockImages, options ...Option) (bool, []*computega.Image, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.Image, m *MockImages, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockImages, options ...Option) (bool, error) GetFromFamilyHook func(context.Context, *meta.Key, *MockImages, ...Option) (*computega.Image, error) GetIamPolicyHook func(context.Context, *meta.Key, *MockImages, ...Option) (*computega.Policy, error) PatchHook func(context.Context, *meta.Key, *computega.Image, *MockImages, ...Option) error SetIamPolicyHook func(context.Context, *meta.Key, *computega.GlobalSetPolicyRequest, *MockImages, ...Option) (*computega.Policy, error) SetLabelsHook func(context.Context, *meta.Key, *computega.GlobalSetLabelsRequest, *MockImages, ...Option) error TestIamPermissionsHook func(context.Context, *meta.Key, *computega.TestPermissionsRequest, *MockImages, ...Option) (*computega.TestPermissionsResponse, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockImages is the mock for Images.
func NewMockImages ¶ added in v1.17.0
func NewMockImages(pr ProjectRouter, objs map[meta.Key]*MockImagesObj) *MockImages
NewMockImages returns a new mock for Images.
func (*MockImages) Get ¶ added in v1.17.0
func (m *MockImages) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Image, error)
Get returns the object from the mock.
func (*MockImages) GetFromFamily ¶ added in v1.17.0
func (m *MockImages) GetFromFamily(ctx context.Context, key *meta.Key, options ...Option) (*computega.Image, error)
GetFromFamily is a mock for the corresponding method.
func (*MockImages) GetIamPolicy ¶ added in v1.17.0
func (m *MockImages) GetIamPolicy(ctx context.Context, key *meta.Key, options ...Option) (*computega.Policy, error)
GetIamPolicy is a mock for the corresponding method.
func (*MockImages) Insert ¶ added in v1.17.0
func (m *MockImages) Insert(ctx context.Context, key *meta.Key, obj *computega.Image, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockImages) List ¶ added in v1.17.0
func (m *MockImages) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Image, error)
List all of the objects in the mock.
func (*MockImages) Obj ¶ added in v1.17.0
func (m *MockImages) Obj(o *computega.Image) *MockImagesObj
Obj wraps the object for use in the mock.
func (*MockImages) Patch ¶ added in v1.17.0
func (m *MockImages) Patch(ctx context.Context, key *meta.Key, arg0 *computega.Image, options ...Option) error
Patch is a mock for the corresponding method.
func (*MockImages) SetIamPolicy ¶ added in v1.17.0
func (m *MockImages) SetIamPolicy(ctx context.Context, key *meta.Key, arg0 *computega.GlobalSetPolicyRequest, options ...Option) (*computega.Policy, error)
SetIamPolicy is a mock for the corresponding method.
func (*MockImages) SetLabels ¶ added in v1.17.0
func (m *MockImages) SetLabels(ctx context.Context, key *meta.Key, arg0 *computega.GlobalSetLabelsRequest, options ...Option) error
SetLabels is a mock for the corresponding method.
func (*MockImages) TestIamPermissions ¶ added in v1.17.0
func (m *MockImages) TestIamPermissions(ctx context.Context, key *meta.Key, arg0 *computega.TestPermissionsRequest, options ...Option) (*computega.TestPermissionsResponse, error)
TestIamPermissions is a mock for the corresponding method.
type MockImagesObj ¶ added in v1.17.0
type MockImagesObj struct {
Obj interface{}
}
MockImagesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockImagesObj) ToAlpha ¶ added in v1.17.0
func (m *MockImagesObj) ToAlpha() *computealpha.Image
ToAlpha retrieves the given version of the object.
func (*MockImagesObj) ToBeta ¶ added in v1.17.0
func (m *MockImagesObj) ToBeta() *computebeta.Image
ToBeta retrieves the given version of the object.
func (*MockImagesObj) ToGA ¶ added in v1.17.0
func (m *MockImagesObj) ToGA() *computega.Image
ToGA retrieves the given version of the object.
type MockInstanceGroupManagers ¶ added in v1.23.0
type MockInstanceGroupManagers struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockInstanceGroupManagersObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockInstanceGroupManagers, options ...Option) (bool, *computega.InstanceGroupManager, error) ListHook func(ctx context.Context, zone string, fl *filter.F, m *MockInstanceGroupManagers, options ...Option) (bool, []*computega.InstanceGroupManager, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.InstanceGroupManager, m *MockInstanceGroupManagers, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockInstanceGroupManagers, options ...Option) (bool, error) CreateInstancesHook func(context.Context, *meta.Key, *computega.InstanceGroupManagersCreateInstancesRequest, *MockInstanceGroupManagers, ...Option) error DeleteInstancesHook func(context.Context, *meta.Key, *computega.InstanceGroupManagersDeleteInstancesRequest, *MockInstanceGroupManagers, ...Option) error ResizeHook func(context.Context, *meta.Key, int64, *MockInstanceGroupManagers, ...Option) error SetInstanceTemplateHook func(context.Context, *meta.Key, *computega.InstanceGroupManagersSetInstanceTemplateRequest, *MockInstanceGroupManagers, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockInstanceGroupManagers is the mock for InstanceGroupManagers.
func NewMockInstanceGroupManagers ¶ added in v1.23.0
func NewMockInstanceGroupManagers(pr ProjectRouter, objs map[meta.Key]*MockInstanceGroupManagersObj) *MockInstanceGroupManagers
NewMockInstanceGroupManagers returns a new mock for InstanceGroupManagers.
func (*MockInstanceGroupManagers) CreateInstances ¶ added in v1.23.0
func (m *MockInstanceGroupManagers) CreateInstances(ctx context.Context, key *meta.Key, arg0 *computega.InstanceGroupManagersCreateInstancesRequest, options ...Option) error
CreateInstances is a mock for the corresponding method.
func (*MockInstanceGroupManagers) Delete ¶ added in v1.23.0
func (m *MockInstanceGroupManagers) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockInstanceGroupManagers) DeleteInstances ¶ added in v1.23.0
func (m *MockInstanceGroupManagers) DeleteInstances(ctx context.Context, key *meta.Key, arg0 *computega.InstanceGroupManagersDeleteInstancesRequest, options ...Option) error
DeleteInstances is a mock for the corresponding method.
func (*MockInstanceGroupManagers) Get ¶ added in v1.23.0
func (m *MockInstanceGroupManagers) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.InstanceGroupManager, error)
Get returns the object from the mock.
func (*MockInstanceGroupManagers) Insert ¶ added in v1.23.0
func (m *MockInstanceGroupManagers) Insert(ctx context.Context, key *meta.Key, obj *computega.InstanceGroupManager, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockInstanceGroupManagers) List ¶ added in v1.23.0
func (m *MockInstanceGroupManagers) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.InstanceGroupManager, error)
List all of the objects in the mock in the given zone.
func (*MockInstanceGroupManagers) Obj ¶ added in v1.23.0
func (m *MockInstanceGroupManagers) Obj(o *computega.InstanceGroupManager) *MockInstanceGroupManagersObj
Obj wraps the object for use in the mock.
func (*MockInstanceGroupManagers) Resize ¶ added in v1.23.0
func (m *MockInstanceGroupManagers) Resize(ctx context.Context, key *meta.Key, arg0 int64, options ...Option) error
Resize is a mock for the corresponding method.
func (*MockInstanceGroupManagers) SetInstanceTemplate ¶ added in v1.23.0
func (m *MockInstanceGroupManagers) SetInstanceTemplate(ctx context.Context, key *meta.Key, arg0 *computega.InstanceGroupManagersSetInstanceTemplateRequest, options ...Option) error
SetInstanceTemplate is a mock for the corresponding method.
type MockInstanceGroupManagersObj ¶ added in v1.23.0
type MockInstanceGroupManagersObj struct {
Obj interface{}
}
MockInstanceGroupManagersObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockInstanceGroupManagersObj) ToGA ¶ added in v1.23.0
func (m *MockInstanceGroupManagersObj) ToGA() *computega.InstanceGroupManager
ToGA retrieves the given version of the object.
type MockInstanceGroups ¶
type MockInstanceGroups struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockInstanceGroupsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockInstanceGroups, options ...Option) (bool, *computega.InstanceGroup, error) ListHook func(ctx context.Context, zone string, fl *filter.F, m *MockInstanceGroups, options ...Option) (bool, []*computega.InstanceGroup, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.InstanceGroup, m *MockInstanceGroups, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockInstanceGroups, options ...Option) (bool, error) AddInstancesHook func(context.Context, *meta.Key, *computega.InstanceGroupsAddInstancesRequest, *MockInstanceGroups, ...Option) error ListInstancesHook func(context.Context, *meta.Key, *computega.InstanceGroupsListInstancesRequest, *filter.F, *MockInstanceGroups, ...Option) ([]*computega.InstanceWithNamedPorts, error) RemoveInstancesHook func(context.Context, *meta.Key, *computega.InstanceGroupsRemoveInstancesRequest, *MockInstanceGroups, ...Option) error SetNamedPortsHook func(context.Context, *meta.Key, *computega.InstanceGroupsSetNamedPortsRequest, *MockInstanceGroups, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockInstanceGroups is the mock for InstanceGroups.
func NewMockInstanceGroups ¶
func NewMockInstanceGroups(pr ProjectRouter, objs map[meta.Key]*MockInstanceGroupsObj) *MockInstanceGroups
NewMockInstanceGroups returns a new mock for InstanceGroups.
func (*MockInstanceGroups) AddInstances ¶
func (m *MockInstanceGroups) AddInstances(ctx context.Context, key *meta.Key, arg0 *computega.InstanceGroupsAddInstancesRequest, options ...Option) error
AddInstances is a mock for the corresponding method.
func (*MockInstanceGroups) Get ¶
func (m *MockInstanceGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.InstanceGroup, error)
Get returns the object from the mock.
func (*MockInstanceGroups) Insert ¶
func (m *MockInstanceGroups) Insert(ctx context.Context, key *meta.Key, obj *computega.InstanceGroup, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockInstanceGroups) List ¶
func (m *MockInstanceGroups) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.InstanceGroup, error)
List all of the objects in the mock in the given zone.
func (*MockInstanceGroups) ListInstances ¶
func (m *MockInstanceGroups) ListInstances(ctx context.Context, key *meta.Key, arg0 *computega.InstanceGroupsListInstancesRequest, fl *filter.F, options ...Option) ([]*computega.InstanceWithNamedPorts, error)
ListInstances is a mock for the corresponding method.
func (*MockInstanceGroups) Obj ¶
func (m *MockInstanceGroups) Obj(o *computega.InstanceGroup) *MockInstanceGroupsObj
Obj wraps the object for use in the mock.
func (*MockInstanceGroups) RemoveInstances ¶
func (m *MockInstanceGroups) RemoveInstances(ctx context.Context, key *meta.Key, arg0 *computega.InstanceGroupsRemoveInstancesRequest, options ...Option) error
RemoveInstances is a mock for the corresponding method.
func (*MockInstanceGroups) SetNamedPorts ¶
func (m *MockInstanceGroups) SetNamedPorts(ctx context.Context, key *meta.Key, arg0 *computega.InstanceGroupsSetNamedPortsRequest, options ...Option) error
SetNamedPorts is a mock for the corresponding method.
type MockInstanceGroupsObj ¶
type MockInstanceGroupsObj struct {
Obj interface{}
}
MockInstanceGroupsObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockInstanceGroupsObj) ToGA ¶
func (m *MockInstanceGroupsObj) ToGA() *computega.InstanceGroup
ToGA retrieves the given version of the object.
type MockInstanceTemplates ¶ added in v1.23.0
type MockInstanceTemplates struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockInstanceTemplatesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockInstanceTemplates, options ...Option) (bool, *computega.InstanceTemplate, error) ListHook func(ctx context.Context, fl *filter.F, m *MockInstanceTemplates, options ...Option) (bool, []*computega.InstanceTemplate, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.InstanceTemplate, m *MockInstanceTemplates, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockInstanceTemplates, options ...Option) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockInstanceTemplates is the mock for InstanceTemplates.
func NewMockInstanceTemplates ¶ added in v1.23.0
func NewMockInstanceTemplates(pr ProjectRouter, objs map[meta.Key]*MockInstanceTemplatesObj) *MockInstanceTemplates
NewMockInstanceTemplates returns a new mock for InstanceTemplates.
func (*MockInstanceTemplates) Get ¶ added in v1.23.0
func (m *MockInstanceTemplates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.InstanceTemplate, error)
Get returns the object from the mock.
func (*MockInstanceTemplates) Insert ¶ added in v1.23.0
func (m *MockInstanceTemplates) Insert(ctx context.Context, key *meta.Key, obj *computega.InstanceTemplate, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockInstanceTemplates) List ¶ added in v1.23.0
func (m *MockInstanceTemplates) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.InstanceTemplate, error)
List all of the objects in the mock.
func (*MockInstanceTemplates) Obj ¶ added in v1.23.0
func (m *MockInstanceTemplates) Obj(o *computega.InstanceTemplate) *MockInstanceTemplatesObj
Obj wraps the object for use in the mock.
type MockInstanceTemplatesObj ¶ added in v1.23.0
type MockInstanceTemplatesObj struct {
Obj interface{}
}
MockInstanceTemplatesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockInstanceTemplatesObj) ToGA ¶ added in v1.23.0
func (m *MockInstanceTemplatesObj) ToGA() *computega.InstanceTemplate
ToGA retrieves the given version of the object.
type MockInstances ¶
type MockInstances struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockInstancesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockInstances, options ...Option) (bool, *computega.Instance, error) ListHook func(ctx context.Context, zone string, fl *filter.F, m *MockInstances, options ...Option) (bool, []*computega.Instance, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.Instance, m *MockInstances, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockInstances, options ...Option) (bool, error) AttachDiskHook func(context.Context, *meta.Key, *computega.AttachedDisk, *MockInstances, ...Option) error DetachDiskHook func(context.Context, *meta.Key, string, *MockInstances, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockInstances is the mock for Instances.
func NewMockInstances ¶
func NewMockInstances(pr ProjectRouter, objs map[meta.Key]*MockInstancesObj) *MockInstances
NewMockInstances returns a new mock for Instances.
func (*MockInstances) AttachDisk ¶
func (m *MockInstances) AttachDisk(ctx context.Context, key *meta.Key, arg0 *computega.AttachedDisk, options ...Option) error
AttachDisk is a mock for the corresponding method.
func (*MockInstances) DetachDisk ¶
func (m *MockInstances) DetachDisk(ctx context.Context, key *meta.Key, arg0 string, options ...Option) error
DetachDisk is a mock for the corresponding method.
func (*MockInstances) Get ¶
func (m *MockInstances) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Instance, error)
Get returns the object from the mock.
func (*MockInstances) Insert ¶
func (m *MockInstances) Insert(ctx context.Context, key *meta.Key, obj *computega.Instance, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockInstances) List ¶
func (m *MockInstances) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.Instance, error)
List all of the objects in the mock in the given zone.
func (*MockInstances) Obj ¶
func (m *MockInstances) Obj(o *computega.Instance) *MockInstancesObj
Obj wraps the object for use in the mock.
type MockInstancesObj ¶
type MockInstancesObj struct {
Obj interface{}
}
MockInstancesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockInstancesObj) ToAlpha ¶
func (m *MockInstancesObj) ToAlpha() *computealpha.Instance
ToAlpha retrieves the given version of the object.
func (*MockInstancesObj) ToBeta ¶
func (m *MockInstancesObj) ToBeta() *computebeta.Instance
ToBeta retrieves the given version of the object.
func (*MockInstancesObj) ToGA ¶
func (m *MockInstancesObj) ToGA() *computega.Instance
ToGA retrieves the given version of the object.
type MockMeshes ¶ added in v1.25.0
type MockMeshes struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockMeshesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockMeshes, options ...Option) (bool, *networkservicesga.Mesh, error) ListHook func(ctx context.Context, fl *filter.F, m *MockMeshes, options ...Option) (bool, []*networkservicesga.Mesh, error) InsertHook func(ctx context.Context, key *meta.Key, obj *networkservicesga.Mesh, m *MockMeshes, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockMeshes, options ...Option) (bool, error) PatchHook func(context.Context, *meta.Key, *networkservicesga.Mesh, *MockMeshes, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockMeshes is the mock for Meshes.
func NewMockMeshes ¶ added in v1.25.0
func NewMockMeshes(pr ProjectRouter, objs map[meta.Key]*MockMeshesObj) *MockMeshes
NewMockMeshes returns a new mock for Meshes.
func (*MockMeshes) Get ¶ added in v1.25.0
func (m *MockMeshes) Get(ctx context.Context, key *meta.Key, options ...Option) (*networkservicesga.Mesh, error)
Get returns the object from the mock.
func (*MockMeshes) Insert ¶ added in v1.25.0
func (m *MockMeshes) Insert(ctx context.Context, key *meta.Key, obj *networkservicesga.Mesh, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockMeshes) List ¶ added in v1.25.0
func (m *MockMeshes) List(ctx context.Context, fl *filter.F, options ...Option) ([]*networkservicesga.Mesh, error)
List all of the objects in the mock.
func (*MockMeshes) Obj ¶ added in v1.25.0
func (m *MockMeshes) Obj(o *networkservicesga.Mesh) *MockMeshesObj
Obj wraps the object for use in the mock.
type MockMeshesObj ¶ added in v1.25.0
type MockMeshesObj struct {
Obj interface{}
}
MockMeshesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockMeshesObj) ToBeta ¶ added in v1.25.0
func (m *MockMeshesObj) ToBeta() *networkservicesbeta.Mesh
ToBeta retrieves the given version of the object.
func (*MockMeshesObj) ToGA ¶ added in v1.25.0
func (m *MockMeshesObj) ToGA() *networkservicesga.Mesh
ToGA retrieves the given version of the object.
type MockNetworkEndpointGroups ¶
type MockNetworkEndpointGroups struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockNetworkEndpointGroupsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error AggregatedListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockNetworkEndpointGroups, options ...Option) (bool, *computega.NetworkEndpointGroup, error) ListHook func(ctx context.Context, zone string, fl *filter.F, m *MockNetworkEndpointGroups, options ...Option) (bool, []*computega.NetworkEndpointGroup, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.NetworkEndpointGroup, m *MockNetworkEndpointGroups, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockNetworkEndpointGroups, options ...Option) (bool, error) AggregatedListHook func(ctx context.Context, fl *filter.F, m *MockNetworkEndpointGroups, options ...Option) (bool, map[string][]*computega.NetworkEndpointGroup, error) AttachNetworkEndpointsHook func(context.Context, *meta.Key, *computega.NetworkEndpointGroupsAttachEndpointsRequest, *MockNetworkEndpointGroups, ...Option) error DetachNetworkEndpointsHook func(context.Context, *meta.Key, *computega.NetworkEndpointGroupsDetachEndpointsRequest, *MockNetworkEndpointGroups, ...Option) error ListNetworkEndpointsHook func(context.Context, *meta.Key, *computega.NetworkEndpointGroupsListEndpointsRequest, *filter.F, *MockNetworkEndpointGroups, ...Option) ([]*computega.NetworkEndpointWithHealthStatus, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockNetworkEndpointGroups is the mock for NetworkEndpointGroups.
func NewMockNetworkEndpointGroups ¶
func NewMockNetworkEndpointGroups(pr ProjectRouter, objs map[meta.Key]*MockNetworkEndpointGroupsObj) *MockNetworkEndpointGroups
NewMockNetworkEndpointGroups returns a new mock for NetworkEndpointGroups.
func (*MockNetworkEndpointGroups) AggregatedList ¶
func (m *MockNetworkEndpointGroups) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computega.NetworkEndpointGroup, error)
AggregatedList is a mock for AggregatedList.
func (*MockNetworkEndpointGroups) AttachNetworkEndpoints ¶
func (m *MockNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computega.NetworkEndpointGroupsAttachEndpointsRequest, options ...Option) error
AttachNetworkEndpoints is a mock for the corresponding method.
func (*MockNetworkEndpointGroups) Delete ¶
func (m *MockNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockNetworkEndpointGroups) DetachNetworkEndpoints ¶
func (m *MockNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computega.NetworkEndpointGroupsDetachEndpointsRequest, options ...Option) error
DetachNetworkEndpoints is a mock for the corresponding method.
func (*MockNetworkEndpointGroups) Get ¶
func (m *MockNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.NetworkEndpointGroup, error)
Get returns the object from the mock.
func (*MockNetworkEndpointGroups) Insert ¶
func (m *MockNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computega.NetworkEndpointGroup, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockNetworkEndpointGroups) List ¶
func (m *MockNetworkEndpointGroups) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointGroup, error)
List all of the objects in the mock in the given zone.
func (*MockNetworkEndpointGroups) ListNetworkEndpoints ¶
func (m *MockNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computega.NetworkEndpointGroupsListEndpointsRequest, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a mock for the corresponding method.
func (*MockNetworkEndpointGroups) Obj ¶
func (m *MockNetworkEndpointGroups) Obj(o *computega.NetworkEndpointGroup) *MockNetworkEndpointGroupsObj
Obj wraps the object for use in the mock.
type MockNetworkEndpointGroupsObj ¶
type MockNetworkEndpointGroupsObj struct {
Obj interface{}
}
MockNetworkEndpointGroupsObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockNetworkEndpointGroupsObj) ToAlpha ¶
func (m *MockNetworkEndpointGroupsObj) ToAlpha() *computealpha.NetworkEndpointGroup
ToAlpha retrieves the given version of the object.
func (*MockNetworkEndpointGroupsObj) ToBeta ¶
func (m *MockNetworkEndpointGroupsObj) ToBeta() *computebeta.NetworkEndpointGroup
ToBeta retrieves the given version of the object.
func (*MockNetworkEndpointGroupsObj) ToGA ¶
func (m *MockNetworkEndpointGroupsObj) ToGA() *computega.NetworkEndpointGroup
ToGA retrieves the given version of the object.
type MockNetworkFirewallPoliciesObj ¶ added in v1.17.0
type MockNetworkFirewallPoliciesObj struct {
Obj interface{}
}
MockNetworkFirewallPoliciesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockNetworkFirewallPoliciesObj) ToAlpha ¶ added in v1.17.0
func (m *MockNetworkFirewallPoliciesObj) ToAlpha() *computealpha.FirewallPolicy
ToAlpha retrieves the given version of the object.
type MockNetworks ¶
type MockNetworks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockNetworksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockNetworks, options ...Option) (bool, *computega.Network, error) ListHook func(ctx context.Context, fl *filter.F, m *MockNetworks, options ...Option) (bool, []*computega.Network, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.Network, m *MockNetworks, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockNetworks, options ...Option) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockNetworks is the mock for Networks.
func NewMockNetworks ¶
func NewMockNetworks(pr ProjectRouter, objs map[meta.Key]*MockNetworksObj) *MockNetworks
NewMockNetworks returns a new mock for Networks.
func (*MockNetworks) Get ¶
func (m *MockNetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Network, error)
Get returns the object from the mock.
func (*MockNetworks) Insert ¶
func (m *MockNetworks) Insert(ctx context.Context, key *meta.Key, obj *computega.Network, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockNetworks) List ¶
func (m *MockNetworks) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Network, error)
List all of the objects in the mock.
func (*MockNetworks) Obj ¶
func (m *MockNetworks) Obj(o *computega.Network) *MockNetworksObj
Obj wraps the object for use in the mock.
type MockNetworksObj ¶
type MockNetworksObj struct {
Obj interface{}
}
MockNetworksObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockNetworksObj) ToAlpha ¶
func (m *MockNetworksObj) ToAlpha() *computealpha.Network
ToAlpha retrieves the given version of the object.
func (*MockNetworksObj) ToBeta ¶
func (m *MockNetworksObj) ToBeta() *computebeta.Network
ToBeta retrieves the given version of the object.
func (*MockNetworksObj) ToGA ¶
func (m *MockNetworksObj) ToGA() *computega.Network
ToGA retrieves the given version of the object.
type MockProjectOpsState ¶
type MockProjectOpsState struct {
// contains filtered or unexported fields
}
MockProjectOpsState is stored in the mock.X field.
type MockProjects ¶
type MockProjects struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockProjectsObj // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockProjects is the mock for Projects.
func NewMockProjects ¶
func NewMockProjects(pr ProjectRouter, objs map[meta.Key]*MockProjectsObj) *MockProjects
NewMockProjects returns a new mock for Projects.
func (*MockProjects) Obj ¶
func (m *MockProjects) Obj(o *computega.Project) *MockProjectsObj
Obj wraps the object for use in the mock.
func (*MockProjects) SetCommonInstanceMetadata ¶
func (m *MockProjects) SetCommonInstanceMetadata(ctx context.Context, projectID string, meta *compute.Metadata) error
SetCommonInstanceMetadata for a given project.
type MockProjectsObj ¶
type MockProjectsObj struct {
Obj interface{}
}
MockProjectsObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockProjectsObj) ToGA ¶
func (m *MockProjectsObj) ToGA() *computega.Project
ToGA retrieves the given version of the object.
type MockRegionBackendServices ¶
type MockRegionBackendServices struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionBackendServicesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockRegionBackendServices, options ...Option) (bool, *computega.BackendService, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockRegionBackendServices, options ...Option) (bool, []*computega.BackendService, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.BackendService, m *MockRegionBackendServices, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockRegionBackendServices, options ...Option) (bool, error) GetHealthHook func(context.Context, *meta.Key, *computega.ResourceGroupReference, *MockRegionBackendServices, ...Option) (*computega.BackendServiceGroupHealth, error) PatchHook func(context.Context, *meta.Key, *computega.BackendService, *MockRegionBackendServices, ...Option) error SetSecurityPolicyHook func(context.Context, *meta.Key, *computega.SecurityPolicyReference, *MockRegionBackendServices, ...Option) error UpdateHook func(context.Context, *meta.Key, *computega.BackendService, *MockRegionBackendServices, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockRegionBackendServices is the mock for RegionBackendServices.
func NewMockRegionBackendServices ¶
func NewMockRegionBackendServices(pr ProjectRouter, objs map[meta.Key]*MockRegionBackendServicesObj) *MockRegionBackendServices
NewMockRegionBackendServices returns a new mock for RegionBackendServices.
func (*MockRegionBackendServices) Delete ¶
func (m *MockRegionBackendServices) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockRegionBackendServices) Get ¶
func (m *MockRegionBackendServices) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.BackendService, error)
Get returns the object from the mock.
func (*MockRegionBackendServices) GetHealth ¶
func (m *MockRegionBackendServices) GetHealth(ctx context.Context, key *meta.Key, arg0 *computega.ResourceGroupReference, options ...Option) (*computega.BackendServiceGroupHealth, error)
GetHealth is a mock for the corresponding method.
func (*MockRegionBackendServices) Insert ¶
func (m *MockRegionBackendServices) Insert(ctx context.Context, key *meta.Key, obj *computega.BackendService, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockRegionBackendServices) List ¶
func (m *MockRegionBackendServices) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.BackendService, error)
List all of the objects in the mock in the given region.
func (*MockRegionBackendServices) Obj ¶
func (m *MockRegionBackendServices) Obj(o *computega.BackendService) *MockRegionBackendServicesObj
Obj wraps the object for use in the mock.
func (*MockRegionBackendServices) Patch ¶ added in v1.22.0
func (m *MockRegionBackendServices) Patch(ctx context.Context, key *meta.Key, arg0 *computega.BackendService, options ...Option) error
Patch is a mock for the corresponding method.
func (*MockRegionBackendServices) SetSecurityPolicy ¶ added in v1.27.0
func (m *MockRegionBackendServices) SetSecurityPolicy(ctx context.Context, key *meta.Key, arg0 *computega.SecurityPolicyReference, options ...Option) error
SetSecurityPolicy is a mock for the corresponding method.
type MockRegionBackendServicesObj ¶
type MockRegionBackendServicesObj struct {
Obj interface{}
}
MockRegionBackendServicesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRegionBackendServicesObj) ToAlpha ¶
func (m *MockRegionBackendServicesObj) ToAlpha() *computealpha.BackendService
ToAlpha retrieves the given version of the object.
func (*MockRegionBackendServicesObj) ToBeta ¶
func (m *MockRegionBackendServicesObj) ToBeta() *computebeta.BackendService
ToBeta retrieves the given version of the object.
func (*MockRegionBackendServicesObj) ToGA ¶
func (m *MockRegionBackendServicesObj) ToGA() *computega.BackendService
ToGA retrieves the given version of the object.
type MockRegionDisks ¶
type MockRegionDisks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionDisksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockRegionDisks, options ...Option) (bool, *computega.Disk, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockRegionDisks, options ...Option) (bool, []*computega.Disk, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.Disk, m *MockRegionDisks, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockRegionDisks, options ...Option) (bool, error) ResizeHook func(context.Context, *meta.Key, *computega.RegionDisksResizeRequest, *MockRegionDisks, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockRegionDisks is the mock for RegionDisks.
func NewMockRegionDisks ¶
func NewMockRegionDisks(pr ProjectRouter, objs map[meta.Key]*MockRegionDisksObj) *MockRegionDisks
NewMockRegionDisks returns a new mock for RegionDisks.
func (*MockRegionDisks) Get ¶
func (m *MockRegionDisks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Disk, error)
Get returns the object from the mock.
func (*MockRegionDisks) Insert ¶
func (m *MockRegionDisks) Insert(ctx context.Context, key *meta.Key, obj *computega.Disk, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockRegionDisks) List ¶
func (m *MockRegionDisks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.Disk, error)
List all of the objects in the mock in the given region.
func (*MockRegionDisks) Obj ¶
func (m *MockRegionDisks) Obj(o *computega.Disk) *MockRegionDisksObj
Obj wraps the object for use in the mock.
type MockRegionDisksObj ¶
type MockRegionDisksObj struct {
Obj interface{}
}
MockRegionDisksObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRegionDisksObj) ToGA ¶
func (m *MockRegionDisksObj) ToGA() *computega.Disk
ToGA retrieves the given version of the object.
type MockRegionHealthChecks ¶
type MockRegionHealthChecks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionHealthChecksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockRegionHealthChecks, options ...Option) (bool, *computega.HealthCheck, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockRegionHealthChecks, options ...Option) (bool, []*computega.HealthCheck, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.HealthCheck, m *MockRegionHealthChecks, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockRegionHealthChecks, options ...Option) (bool, error) UpdateHook func(context.Context, *meta.Key, *computega.HealthCheck, *MockRegionHealthChecks, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockRegionHealthChecks is the mock for RegionHealthChecks.
func NewMockRegionHealthChecks ¶
func NewMockRegionHealthChecks(pr ProjectRouter, objs map[meta.Key]*MockRegionHealthChecksObj) *MockRegionHealthChecks
NewMockRegionHealthChecks returns a new mock for RegionHealthChecks.
func (*MockRegionHealthChecks) Delete ¶
func (m *MockRegionHealthChecks) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockRegionHealthChecks) Get ¶
func (m *MockRegionHealthChecks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.HealthCheck, error)
Get returns the object from the mock.
func (*MockRegionHealthChecks) Insert ¶
func (m *MockRegionHealthChecks) Insert(ctx context.Context, key *meta.Key, obj *computega.HealthCheck, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockRegionHealthChecks) List ¶
func (m *MockRegionHealthChecks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.HealthCheck, error)
List all of the objects in the mock in the given region.
func (*MockRegionHealthChecks) Obj ¶
func (m *MockRegionHealthChecks) Obj(o *computega.HealthCheck) *MockRegionHealthChecksObj
Obj wraps the object for use in the mock.
type MockRegionHealthChecksObj ¶
type MockRegionHealthChecksObj struct {
Obj interface{}
}
MockRegionHealthChecksObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRegionHealthChecksObj) ToAlpha ¶
func (m *MockRegionHealthChecksObj) ToAlpha() *computealpha.HealthCheck
ToAlpha retrieves the given version of the object.
func (*MockRegionHealthChecksObj) ToBeta ¶
func (m *MockRegionHealthChecksObj) ToBeta() *computebeta.HealthCheck
ToBeta retrieves the given version of the object.
func (*MockRegionHealthChecksObj) ToGA ¶
func (m *MockRegionHealthChecksObj) ToGA() *computega.HealthCheck
ToGA retrieves the given version of the object.
type MockRegionNetworkEndpointGroups ¶ added in v1.29.0
type MockRegionNetworkEndpointGroups struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionNetworkEndpointGroupsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockRegionNetworkEndpointGroups, options ...Option) (bool, *computega.NetworkEndpointGroup, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockRegionNetworkEndpointGroups, options ...Option) (bool, []*computega.NetworkEndpointGroup, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.NetworkEndpointGroup, m *MockRegionNetworkEndpointGroups, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockRegionNetworkEndpointGroups, options ...Option) (bool, error) AttachNetworkEndpointsHook func(context.Context, *meta.Key, *computega.RegionNetworkEndpointGroupsAttachEndpointsRequest, *MockRegionNetworkEndpointGroups, ...Option) error DetachNetworkEndpointsHook func(context.Context, *meta.Key, *computega.RegionNetworkEndpointGroupsDetachEndpointsRequest, *MockRegionNetworkEndpointGroups, ...Option) error ListNetworkEndpointsHook func(context.Context, *meta.Key, *filter.F, *MockRegionNetworkEndpointGroups, ...Option) ([]*computega.NetworkEndpointWithHealthStatus, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockRegionNetworkEndpointGroups is the mock for RegionNetworkEndpointGroups.
func NewMockRegionNetworkEndpointGroups ¶ added in v1.29.0
func NewMockRegionNetworkEndpointGroups(pr ProjectRouter, objs map[meta.Key]*MockRegionNetworkEndpointGroupsObj) *MockRegionNetworkEndpointGroups
NewMockRegionNetworkEndpointGroups returns a new mock for RegionNetworkEndpointGroups.
func (*MockRegionNetworkEndpointGroups) AttachNetworkEndpoints ¶ added in v1.29.0
func (m *MockRegionNetworkEndpointGroups) AttachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computega.RegionNetworkEndpointGroupsAttachEndpointsRequest, options ...Option) error
AttachNetworkEndpoints is a mock for the corresponding method.
func (*MockRegionNetworkEndpointGroups) Delete ¶ added in v1.29.0
func (m *MockRegionNetworkEndpointGroups) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockRegionNetworkEndpointGroups) DetachNetworkEndpoints ¶ added in v1.29.0
func (m *MockRegionNetworkEndpointGroups) DetachNetworkEndpoints(ctx context.Context, key *meta.Key, arg0 *computega.RegionNetworkEndpointGroupsDetachEndpointsRequest, options ...Option) error
DetachNetworkEndpoints is a mock for the corresponding method.
func (*MockRegionNetworkEndpointGroups) Get ¶ added in v1.29.0
func (m *MockRegionNetworkEndpointGroups) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.NetworkEndpointGroup, error)
Get returns the object from the mock.
func (*MockRegionNetworkEndpointGroups) Insert ¶ added in v1.29.0
func (m *MockRegionNetworkEndpointGroups) Insert(ctx context.Context, key *meta.Key, obj *computega.NetworkEndpointGroup, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockRegionNetworkEndpointGroups) List ¶ added in v1.29.0
func (m *MockRegionNetworkEndpointGroups) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointGroup, error)
List all of the objects in the mock in the given region.
func (*MockRegionNetworkEndpointGroups) ListNetworkEndpoints ¶ added in v1.29.0
func (m *MockRegionNetworkEndpointGroups) ListNetworkEndpoints(ctx context.Context, key *meta.Key, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointWithHealthStatus, error)
ListNetworkEndpoints is a mock for the corresponding method.
func (*MockRegionNetworkEndpointGroups) Obj ¶ added in v1.29.0
func (m *MockRegionNetworkEndpointGroups) Obj(o *computega.NetworkEndpointGroup) *MockRegionNetworkEndpointGroupsObj
Obj wraps the object for use in the mock.
type MockRegionNetworkEndpointGroupsObj ¶ added in v1.29.0
type MockRegionNetworkEndpointGroupsObj struct {
Obj interface{}
}
MockRegionNetworkEndpointGroupsObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRegionNetworkEndpointGroupsObj) ToAlpha ¶ added in v1.29.0
func (m *MockRegionNetworkEndpointGroupsObj) ToAlpha() *computealpha.NetworkEndpointGroup
ToAlpha retrieves the given version of the object.
func (*MockRegionNetworkEndpointGroupsObj) ToBeta ¶ added in v1.29.0
func (m *MockRegionNetworkEndpointGroupsObj) ToBeta() *computebeta.NetworkEndpointGroup
ToBeta retrieves the given version of the object.
func (*MockRegionNetworkEndpointGroupsObj) ToGA ¶ added in v1.29.0
func (m *MockRegionNetworkEndpointGroupsObj) ToGA() *computega.NetworkEndpointGroup
ToGA retrieves the given version of the object.
type MockRegionNetworkFirewallPoliciesObj ¶ added in v1.17.0
type MockRegionNetworkFirewallPoliciesObj struct {
Obj interface{}
}
MockRegionNetworkFirewallPoliciesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRegionNetworkFirewallPoliciesObj) ToAlpha ¶ added in v1.17.0
func (m *MockRegionNetworkFirewallPoliciesObj) ToAlpha() *computealpha.FirewallPolicy
ToAlpha retrieves the given version of the object.
type MockRegionSslCertificates ¶
type MockRegionSslCertificates struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionSslCertificatesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockRegionSslCertificates, options ...Option) (bool, *computega.SslCertificate, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockRegionSslCertificates, options ...Option) (bool, []*computega.SslCertificate, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.SslCertificate, m *MockRegionSslCertificates, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockRegionSslCertificates, options ...Option) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockRegionSslCertificates is the mock for RegionSslCertificates.
func NewMockRegionSslCertificates ¶
func NewMockRegionSslCertificates(pr ProjectRouter, objs map[meta.Key]*MockRegionSslCertificatesObj) *MockRegionSslCertificates
NewMockRegionSslCertificates returns a new mock for RegionSslCertificates.
func (*MockRegionSslCertificates) Delete ¶
func (m *MockRegionSslCertificates) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockRegionSslCertificates) Get ¶
func (m *MockRegionSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.SslCertificate, error)
Get returns the object from the mock.
func (*MockRegionSslCertificates) Insert ¶
func (m *MockRegionSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computega.SslCertificate, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockRegionSslCertificates) List ¶
func (m *MockRegionSslCertificates) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.SslCertificate, error)
List all of the objects in the mock in the given region.
func (*MockRegionSslCertificates) Obj ¶
func (m *MockRegionSslCertificates) Obj(o *computega.SslCertificate) *MockRegionSslCertificatesObj
Obj wraps the object for use in the mock.
type MockRegionSslCertificatesObj ¶
type MockRegionSslCertificatesObj struct {
Obj interface{}
}
MockRegionSslCertificatesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRegionSslCertificatesObj) ToAlpha ¶
func (m *MockRegionSslCertificatesObj) ToAlpha() *computealpha.SslCertificate
ToAlpha retrieves the given version of the object.
func (*MockRegionSslCertificatesObj) ToBeta ¶
func (m *MockRegionSslCertificatesObj) ToBeta() *computebeta.SslCertificate
ToBeta retrieves the given version of the object.
func (*MockRegionSslCertificatesObj) ToGA ¶
func (m *MockRegionSslCertificatesObj) ToGA() *computega.SslCertificate
ToGA retrieves the given version of the object.
type MockRegionSslPolicies ¶ added in v1.25.0
type MockRegionSslPolicies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionSslPoliciesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockRegionSslPolicies, options ...Option) (bool, *computega.SslPolicy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.SslPolicy, m *MockRegionSslPolicies, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockRegionSslPolicies, options ...Option) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockRegionSslPolicies is the mock for RegionSslPolicies.
func NewMockRegionSslPolicies ¶ added in v1.25.0
func NewMockRegionSslPolicies(pr ProjectRouter, objs map[meta.Key]*MockRegionSslPoliciesObj) *MockRegionSslPolicies
NewMockRegionSslPolicies returns a new mock for RegionSslPolicies.
func (*MockRegionSslPolicies) Get ¶ added in v1.25.0
func (m *MockRegionSslPolicies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.SslPolicy, error)
Get returns the object from the mock.
func (*MockRegionSslPolicies) Insert ¶ added in v1.25.0
func (m *MockRegionSslPolicies) Insert(ctx context.Context, key *meta.Key, obj *computega.SslPolicy, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockRegionSslPolicies) Obj ¶ added in v1.25.0
func (m *MockRegionSslPolicies) Obj(o *computega.SslPolicy) *MockRegionSslPoliciesObj
Obj wraps the object for use in the mock.
type MockRegionSslPoliciesObj ¶ added in v1.25.0
type MockRegionSslPoliciesObj struct {
Obj interface{}
}
MockRegionSslPoliciesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRegionSslPoliciesObj) ToGA ¶ added in v1.25.0
func (m *MockRegionSslPoliciesObj) ToGA() *computega.SslPolicy
ToGA retrieves the given version of the object.
type MockRegionTargetHttpProxies ¶
type MockRegionTargetHttpProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionTargetHttpProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockRegionTargetHttpProxies, options ...Option) (bool, *computega.TargetHttpProxy, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockRegionTargetHttpProxies, options ...Option) (bool, []*computega.TargetHttpProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.TargetHttpProxy, m *MockRegionTargetHttpProxies, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockRegionTargetHttpProxies, options ...Option) (bool, error) SetUrlMapHook func(context.Context, *meta.Key, *computega.UrlMapReference, *MockRegionTargetHttpProxies, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockRegionTargetHttpProxies is the mock for RegionTargetHttpProxies.
func NewMockRegionTargetHttpProxies ¶
func NewMockRegionTargetHttpProxies(pr ProjectRouter, objs map[meta.Key]*MockRegionTargetHttpProxiesObj) *MockRegionTargetHttpProxies
NewMockRegionTargetHttpProxies returns a new mock for RegionTargetHttpProxies.
func (*MockRegionTargetHttpProxies) Delete ¶
func (m *MockRegionTargetHttpProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockRegionTargetHttpProxies) Get ¶
func (m *MockRegionTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetHttpProxy, error)
Get returns the object from the mock.
func (*MockRegionTargetHttpProxies) Insert ¶
func (m *MockRegionTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetHttpProxy, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockRegionTargetHttpProxies) List ¶
func (m *MockRegionTargetHttpProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.TargetHttpProxy, error)
List all of the objects in the mock in the given region.
func (*MockRegionTargetHttpProxies) Obj ¶
func (m *MockRegionTargetHttpProxies) Obj(o *computega.TargetHttpProxy) *MockRegionTargetHttpProxiesObj
Obj wraps the object for use in the mock.
type MockRegionTargetHttpProxiesObj ¶
type MockRegionTargetHttpProxiesObj struct {
Obj interface{}
}
MockRegionTargetHttpProxiesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRegionTargetHttpProxiesObj) ToAlpha ¶
func (m *MockRegionTargetHttpProxiesObj) ToAlpha() *computealpha.TargetHttpProxy
ToAlpha retrieves the given version of the object.
func (*MockRegionTargetHttpProxiesObj) ToBeta ¶
func (m *MockRegionTargetHttpProxiesObj) ToBeta() *computebeta.TargetHttpProxy
ToBeta retrieves the given version of the object.
func (*MockRegionTargetHttpProxiesObj) ToGA ¶
func (m *MockRegionTargetHttpProxiesObj) ToGA() *computega.TargetHttpProxy
ToGA retrieves the given version of the object.
type MockRegionTargetHttpsProxies ¶
type MockRegionTargetHttpsProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionTargetHttpsProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockRegionTargetHttpsProxies, options ...Option) (bool, *computega.TargetHttpsProxy, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockRegionTargetHttpsProxies, options ...Option) (bool, []*computega.TargetHttpsProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.TargetHttpsProxy, m *MockRegionTargetHttpsProxies, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockRegionTargetHttpsProxies, options ...Option) (bool, error) PatchHook func(context.Context, *meta.Key, *computega.TargetHttpsProxy, *MockRegionTargetHttpsProxies, ...Option) error SetSslCertificatesHook func(context.Context, *meta.Key, *computega.RegionTargetHttpsProxiesSetSslCertificatesRequest, *MockRegionTargetHttpsProxies, ...Option) error SetUrlMapHook func(context.Context, *meta.Key, *computega.UrlMapReference, *MockRegionTargetHttpsProxies, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockRegionTargetHttpsProxies is the mock for RegionTargetHttpsProxies.
func NewMockRegionTargetHttpsProxies ¶
func NewMockRegionTargetHttpsProxies(pr ProjectRouter, objs map[meta.Key]*MockRegionTargetHttpsProxiesObj) *MockRegionTargetHttpsProxies
NewMockRegionTargetHttpsProxies returns a new mock for RegionTargetHttpsProxies.
func (*MockRegionTargetHttpsProxies) Delete ¶
func (m *MockRegionTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockRegionTargetHttpsProxies) Get ¶
func (m *MockRegionTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetHttpsProxy, error)
Get returns the object from the mock.
func (*MockRegionTargetHttpsProxies) Insert ¶
func (m *MockRegionTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetHttpsProxy, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockRegionTargetHttpsProxies) List ¶
func (m *MockRegionTargetHttpsProxies) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.TargetHttpsProxy, error)
List all of the objects in the mock in the given region.
func (*MockRegionTargetHttpsProxies) Obj ¶
func (m *MockRegionTargetHttpsProxies) Obj(o *computega.TargetHttpsProxy) *MockRegionTargetHttpsProxiesObj
Obj wraps the object for use in the mock.
func (*MockRegionTargetHttpsProxies) Patch ¶ added in v1.25.0
func (m *MockRegionTargetHttpsProxies) Patch(ctx context.Context, key *meta.Key, arg0 *computega.TargetHttpsProxy, options ...Option) error
Patch is a mock for the corresponding method.
func (*MockRegionTargetHttpsProxies) SetSslCertificates ¶
func (m *MockRegionTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *computega.RegionTargetHttpsProxiesSetSslCertificatesRequest, options ...Option) error
SetSslCertificates is a mock for the corresponding method.
type MockRegionTargetHttpsProxiesObj ¶
type MockRegionTargetHttpsProxiesObj struct {
Obj interface{}
}
MockRegionTargetHttpsProxiesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRegionTargetHttpsProxiesObj) ToAlpha ¶
func (m *MockRegionTargetHttpsProxiesObj) ToAlpha() *computealpha.TargetHttpsProxy
ToAlpha retrieves the given version of the object.
func (*MockRegionTargetHttpsProxiesObj) ToBeta ¶
func (m *MockRegionTargetHttpsProxiesObj) ToBeta() *computebeta.TargetHttpsProxy
ToBeta retrieves the given version of the object.
func (*MockRegionTargetHttpsProxiesObj) ToGA ¶
func (m *MockRegionTargetHttpsProxiesObj) ToGA() *computega.TargetHttpsProxy
ToGA retrieves the given version of the object.
type MockRegionUrlMaps ¶
type MockRegionUrlMaps struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionUrlMapsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockRegionUrlMaps, options ...Option) (bool, *computega.UrlMap, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockRegionUrlMaps, options ...Option) (bool, []*computega.UrlMap, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.UrlMap, m *MockRegionUrlMaps, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockRegionUrlMaps, options ...Option) (bool, error) UpdateHook func(context.Context, *meta.Key, *computega.UrlMap, *MockRegionUrlMaps, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockRegionUrlMaps is the mock for RegionUrlMaps.
func NewMockRegionUrlMaps ¶
func NewMockRegionUrlMaps(pr ProjectRouter, objs map[meta.Key]*MockRegionUrlMapsObj) *MockRegionUrlMaps
NewMockRegionUrlMaps returns a new mock for RegionUrlMaps.
func (*MockRegionUrlMaps) Get ¶
func (m *MockRegionUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.UrlMap, error)
Get returns the object from the mock.
func (*MockRegionUrlMaps) Insert ¶
func (m *MockRegionUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computega.UrlMap, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockRegionUrlMaps) List ¶
func (m *MockRegionUrlMaps) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.UrlMap, error)
List all of the objects in the mock in the given region.
func (*MockRegionUrlMaps) Obj ¶
func (m *MockRegionUrlMaps) Obj(o *computega.UrlMap) *MockRegionUrlMapsObj
Obj wraps the object for use in the mock.
type MockRegionUrlMapsObj ¶
type MockRegionUrlMapsObj struct {
Obj interface{}
}
MockRegionUrlMapsObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRegionUrlMapsObj) ToAlpha ¶
func (m *MockRegionUrlMapsObj) ToAlpha() *computealpha.UrlMap
ToAlpha retrieves the given version of the object.
func (*MockRegionUrlMapsObj) ToBeta ¶
func (m *MockRegionUrlMapsObj) ToBeta() *computebeta.UrlMap
ToBeta retrieves the given version of the object.
func (*MockRegionUrlMapsObj) ToGA ¶
func (m *MockRegionUrlMapsObj) ToGA() *computega.UrlMap
ToGA retrieves the given version of the object.
type MockRegions ¶
type MockRegions struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRegionsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockRegions, options ...Option) (bool, *computega.Region, error) ListHook func(ctx context.Context, fl *filter.F, m *MockRegions, options ...Option) (bool, []*computega.Region, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockRegions is the mock for Regions.
func NewMockRegions ¶
func NewMockRegions(pr ProjectRouter, objs map[meta.Key]*MockRegionsObj) *MockRegions
NewMockRegions returns a new mock for Regions.
func (*MockRegions) Get ¶
func (m *MockRegions) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Region, error)
Get returns the object from the mock.
func (*MockRegions) List ¶
func (m *MockRegions) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Region, error)
List all of the objects in the mock.
func (*MockRegions) Obj ¶
func (m *MockRegions) Obj(o *computega.Region) *MockRegionsObj
Obj wraps the object for use in the mock.
type MockRegionsObj ¶
type MockRegionsObj struct {
Obj interface{}
}
MockRegionsObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRegionsObj) ToGA ¶
func (m *MockRegionsObj) ToGA() *computega.Region
ToGA retrieves the given version of the object.
type MockRouters ¶ added in v1.17.0
type MockRouters struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRoutersObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error AggregatedListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockRouters, options ...Option) (bool, *computega.Router, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockRouters, options ...Option) (bool, []*computega.Router, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.Router, m *MockRouters, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockRouters, options ...Option) (bool, error) AggregatedListHook func(ctx context.Context, fl *filter.F, m *MockRouters, options ...Option) (bool, map[string][]*computega.Router, error) GetRouterStatusHook func(context.Context, *meta.Key, *MockRouters, ...Option) (*computega.RouterStatusResponse, error) PatchHook func(context.Context, *meta.Key, *computega.Router, *MockRouters, ...Option) error PreviewHook func(context.Context, *meta.Key, *computega.Router, *MockRouters, ...Option) (*computega.RoutersPreviewResponse, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockRouters is the mock for Routers.
func NewMockRouters ¶ added in v1.17.0
func NewMockRouters(pr ProjectRouter, objs map[meta.Key]*MockRoutersObj) *MockRouters
NewMockRouters returns a new mock for Routers.
func (*MockRouters) AggregatedList ¶ added in v1.17.0
func (m *MockRouters) AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computega.Router, error)
AggregatedList is a mock for AggregatedList.
func (*MockRouters) Get ¶ added in v1.17.0
func (m *MockRouters) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Router, error)
Get returns the object from the mock.
func (*MockRouters) GetRouterStatus ¶ added in v1.17.0
func (m *MockRouters) GetRouterStatus(ctx context.Context, key *meta.Key, options ...Option) (*computega.RouterStatusResponse, error)
GetRouterStatus is a mock for the corresponding method.
func (*MockRouters) Insert ¶ added in v1.17.0
func (m *MockRouters) Insert(ctx context.Context, key *meta.Key, obj *computega.Router, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockRouters) List ¶ added in v1.17.0
func (m *MockRouters) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.Router, error)
List all of the objects in the mock in the given region.
func (*MockRouters) Obj ¶ added in v1.17.0
func (m *MockRouters) Obj(o *computega.Router) *MockRoutersObj
Obj wraps the object for use in the mock.
type MockRoutersObj ¶ added in v1.17.0
type MockRoutersObj struct {
Obj interface{}
}
MockRoutersObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRoutersObj) ToAlpha ¶ added in v1.17.0
func (m *MockRoutersObj) ToAlpha() *computealpha.Router
ToAlpha retrieves the given version of the object.
func (*MockRoutersObj) ToBeta ¶ added in v1.17.0
func (m *MockRoutersObj) ToBeta() *computebeta.Router
ToBeta retrieves the given version of the object.
func (*MockRoutersObj) ToGA ¶ added in v1.17.0
func (m *MockRoutersObj) ToGA() *computega.Router
ToGA retrieves the given version of the object.
type MockRoutes ¶
type MockRoutes struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockRoutesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockRoutes, options ...Option) (bool, *computega.Route, error) ListHook func(ctx context.Context, fl *filter.F, m *MockRoutes, options ...Option) (bool, []*computega.Route, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.Route, m *MockRoutes, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockRoutes, options ...Option) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockRoutes is the mock for Routes.
func NewMockRoutes ¶
func NewMockRoutes(pr ProjectRouter, objs map[meta.Key]*MockRoutesObj) *MockRoutes
NewMockRoutes returns a new mock for Routes.
func (*MockRoutes) Get ¶
func (m *MockRoutes) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Route, error)
Get returns the object from the mock.
func (*MockRoutes) Insert ¶
func (m *MockRoutes) Insert(ctx context.Context, key *meta.Key, obj *computega.Route, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockRoutes) List ¶
func (m *MockRoutes) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Route, error)
List all of the objects in the mock.
func (*MockRoutes) Obj ¶
func (m *MockRoutes) Obj(o *computega.Route) *MockRoutesObj
Obj wraps the object for use in the mock.
type MockRoutesObj ¶
type MockRoutesObj struct {
Obj interface{}
}
MockRoutesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockRoutesObj) ToGA ¶
func (m *MockRoutesObj) ToGA() *computega.Route
ToGA retrieves the given version of the object.
type MockSecurityPoliciesObj ¶
type MockSecurityPoliciesObj struct {
Obj interface{}
}
MockSecurityPoliciesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockSecurityPoliciesObj) ToBeta ¶
func (m *MockSecurityPoliciesObj) ToBeta() *computebeta.SecurityPolicy
ToBeta retrieves the given version of the object.
type MockServiceAttachments ¶ added in v1.18.0
type MockServiceAttachments struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockServiceAttachmentsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockServiceAttachments, options ...Option) (bool, *computega.ServiceAttachment, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockServiceAttachments, options ...Option) (bool, []*computega.ServiceAttachment, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.ServiceAttachment, m *MockServiceAttachments, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockServiceAttachments, options ...Option) (bool, error) PatchHook func(context.Context, *meta.Key, *computega.ServiceAttachment, *MockServiceAttachments, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockServiceAttachments is the mock for ServiceAttachments.
func NewMockServiceAttachments ¶ added in v1.18.0
func NewMockServiceAttachments(pr ProjectRouter, objs map[meta.Key]*MockServiceAttachmentsObj) *MockServiceAttachments
NewMockServiceAttachments returns a new mock for ServiceAttachments.
func (*MockServiceAttachments) Delete ¶ added in v1.18.0
func (m *MockServiceAttachments) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockServiceAttachments) Get ¶ added in v1.18.0
func (m *MockServiceAttachments) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.ServiceAttachment, error)
Get returns the object from the mock.
func (*MockServiceAttachments) Insert ¶ added in v1.18.0
func (m *MockServiceAttachments) Insert(ctx context.Context, key *meta.Key, obj *computega.ServiceAttachment, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockServiceAttachments) List ¶ added in v1.18.0
func (m *MockServiceAttachments) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.ServiceAttachment, error)
List all of the objects in the mock in the given region.
func (*MockServiceAttachments) Obj ¶ added in v1.18.0
func (m *MockServiceAttachments) Obj(o *computega.ServiceAttachment) *MockServiceAttachmentsObj
Obj wraps the object for use in the mock.
type MockServiceAttachmentsObj ¶
type MockServiceAttachmentsObj struct {
Obj interface{}
}
MockServiceAttachmentsObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockServiceAttachmentsObj) ToAlpha ¶
func (m *MockServiceAttachmentsObj) ToAlpha() *computealpha.ServiceAttachment
ToAlpha retrieves the given version of the object.
func (*MockServiceAttachmentsObj) ToBeta ¶ added in v1.15.0
func (m *MockServiceAttachmentsObj) ToBeta() *computebeta.ServiceAttachment
ToBeta retrieves the given version of the object.
func (*MockServiceAttachmentsObj) ToGA ¶ added in v1.18.0
func (m *MockServiceAttachmentsObj) ToGA() *computega.ServiceAttachment
ToGA retrieves the given version of the object.
type MockSslCertificates ¶
type MockSslCertificates struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockSslCertificatesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockSslCertificates, options ...Option) (bool, *computega.SslCertificate, error) ListHook func(ctx context.Context, fl *filter.F, m *MockSslCertificates, options ...Option) (bool, []*computega.SslCertificate, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.SslCertificate, m *MockSslCertificates, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockSslCertificates, options ...Option) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockSslCertificates is the mock for SslCertificates.
func NewMockSslCertificates ¶
func NewMockSslCertificates(pr ProjectRouter, objs map[meta.Key]*MockSslCertificatesObj) *MockSslCertificates
NewMockSslCertificates returns a new mock for SslCertificates.
func (*MockSslCertificates) Get ¶
func (m *MockSslCertificates) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.SslCertificate, error)
Get returns the object from the mock.
func (*MockSslCertificates) Insert ¶
func (m *MockSslCertificates) Insert(ctx context.Context, key *meta.Key, obj *computega.SslCertificate, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockSslCertificates) List ¶
func (m *MockSslCertificates) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.SslCertificate, error)
List all of the objects in the mock.
func (*MockSslCertificates) Obj ¶
func (m *MockSslCertificates) Obj(o *computega.SslCertificate) *MockSslCertificatesObj
Obj wraps the object for use in the mock.
type MockSslCertificatesObj ¶
type MockSslCertificatesObj struct {
Obj interface{}
}
MockSslCertificatesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockSslCertificatesObj) ToAlpha ¶
func (m *MockSslCertificatesObj) ToAlpha() *computealpha.SslCertificate
ToAlpha retrieves the given version of the object.
func (*MockSslCertificatesObj) ToBeta ¶
func (m *MockSslCertificatesObj) ToBeta() *computebeta.SslCertificate
ToBeta retrieves the given version of the object.
func (*MockSslCertificatesObj) ToGA ¶
func (m *MockSslCertificatesObj) ToGA() *computega.SslCertificate
ToGA retrieves the given version of the object.
type MockSslPolicies ¶
type MockSslPolicies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockSslPoliciesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockSslPolicies, options ...Option) (bool, *computega.SslPolicy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.SslPolicy, m *MockSslPolicies, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockSslPolicies, options ...Option) (bool, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockSslPolicies is the mock for SslPolicies.
func NewMockSslPolicies ¶
func NewMockSslPolicies(pr ProjectRouter, objs map[meta.Key]*MockSslPoliciesObj) *MockSslPolicies
NewMockSslPolicies returns a new mock for SslPolicies.
func (*MockSslPolicies) Get ¶
func (m *MockSslPolicies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.SslPolicy, error)
Get returns the object from the mock.
func (*MockSslPolicies) Insert ¶
func (m *MockSslPolicies) Insert(ctx context.Context, key *meta.Key, obj *computega.SslPolicy, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockSslPolicies) Obj ¶
func (m *MockSslPolicies) Obj(o *computega.SslPolicy) *MockSslPoliciesObj
Obj wraps the object for use in the mock.
type MockSslPoliciesObj ¶
type MockSslPoliciesObj struct {
Obj interface{}
}
MockSslPoliciesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockSslPoliciesObj) ToGA ¶
func (m *MockSslPoliciesObj) ToGA() *computega.SslPolicy
ToGA retrieves the given version of the object.
type MockSubnetworks ¶
type MockSubnetworks struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockSubnetworksObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error ListUsableError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockSubnetworks, options ...Option) (bool, *computega.Subnetwork, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockSubnetworks, options ...Option) (bool, []*computega.Subnetwork, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.Subnetwork, m *MockSubnetworks, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockSubnetworks, options ...Option) (bool, error) ListUsableHook func(ctx context.Context, fl *filter.F, m *MockSubnetworks, options ...Option) (bool, []*computega.UsableSubnetwork, error) PatchHook func(context.Context, *meta.Key, *computega.Subnetwork, *MockSubnetworks, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockSubnetworks is the mock for Subnetworks.
func NewMockSubnetworks ¶
func NewMockSubnetworks(pr ProjectRouter, objs map[meta.Key]*MockSubnetworksObj) *MockSubnetworks
NewMockSubnetworks returns a new mock for Subnetworks.
func (*MockSubnetworks) Get ¶
func (m *MockSubnetworks) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Subnetwork, error)
Get returns the object from the mock.
func (*MockSubnetworks) Insert ¶
func (m *MockSubnetworks) Insert(ctx context.Context, key *meta.Key, obj *computega.Subnetwork, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockSubnetworks) List ¶
func (m *MockSubnetworks) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.Subnetwork, error)
List all of the objects in the mock in the given region.
func (*MockSubnetworks) ListUsable ¶ added in v1.16.0
func (m *MockSubnetworks) ListUsable(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.UsableSubnetwork, error)
List all of the objects in the mock.
func (*MockSubnetworks) Obj ¶
func (m *MockSubnetworks) Obj(o *computega.Subnetwork) *MockSubnetworksObj
Obj wraps the object for use in the mock.
type MockSubnetworksObj ¶
type MockSubnetworksObj struct {
Obj interface{}
}
MockSubnetworksObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockSubnetworksObj) ToAlpha ¶
func (m *MockSubnetworksObj) ToAlpha() *computealpha.Subnetwork
ToAlpha retrieves the given version of the object.
func (*MockSubnetworksObj) ToBeta ¶
func (m *MockSubnetworksObj) ToBeta() *computebeta.Subnetwork
ToBeta retrieves the given version of the object.
func (*MockSubnetworksObj) ToGA ¶
func (m *MockSubnetworksObj) ToGA() *computega.Subnetwork
ToGA retrieves the given version of the object.
type MockTargetHttpProxies ¶
type MockTargetHttpProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockTargetHttpProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockTargetHttpProxies, options ...Option) (bool, *computega.TargetHttpProxy, error) ListHook func(ctx context.Context, fl *filter.F, m *MockTargetHttpProxies, options ...Option) (bool, []*computega.TargetHttpProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.TargetHttpProxy, m *MockTargetHttpProxies, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockTargetHttpProxies, options ...Option) (bool, error) SetUrlMapHook func(context.Context, *meta.Key, *computega.UrlMapReference, *MockTargetHttpProxies, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockTargetHttpProxies is the mock for TargetHttpProxies.
func NewMockTargetHttpProxies ¶
func NewMockTargetHttpProxies(pr ProjectRouter, objs map[meta.Key]*MockTargetHttpProxiesObj) *MockTargetHttpProxies
NewMockTargetHttpProxies returns a new mock for TargetHttpProxies.
func (*MockTargetHttpProxies) Get ¶
func (m *MockTargetHttpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetHttpProxy, error)
Get returns the object from the mock.
func (*MockTargetHttpProxies) Insert ¶
func (m *MockTargetHttpProxies) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetHttpProxy, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockTargetHttpProxies) List ¶
func (m *MockTargetHttpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.TargetHttpProxy, error)
List all of the objects in the mock.
func (*MockTargetHttpProxies) Obj ¶
func (m *MockTargetHttpProxies) Obj(o *computega.TargetHttpProxy) *MockTargetHttpProxiesObj
Obj wraps the object for use in the mock.
type MockTargetHttpProxiesObj ¶
type MockTargetHttpProxiesObj struct {
Obj interface{}
}
MockTargetHttpProxiesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockTargetHttpProxiesObj) ToAlpha ¶
func (m *MockTargetHttpProxiesObj) ToAlpha() *computealpha.TargetHttpProxy
ToAlpha retrieves the given version of the object.
func (*MockTargetHttpProxiesObj) ToBeta ¶
func (m *MockTargetHttpProxiesObj) ToBeta() *computebeta.TargetHttpProxy
ToBeta retrieves the given version of the object.
func (*MockTargetHttpProxiesObj) ToGA ¶
func (m *MockTargetHttpProxiesObj) ToGA() *computega.TargetHttpProxy
ToGA retrieves the given version of the object.
type MockTargetHttpsProxies ¶
type MockTargetHttpsProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockTargetHttpsProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockTargetHttpsProxies, options ...Option) (bool, *computega.TargetHttpsProxy, error) ListHook func(ctx context.Context, fl *filter.F, m *MockTargetHttpsProxies, options ...Option) (bool, []*computega.TargetHttpsProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.TargetHttpsProxy, m *MockTargetHttpsProxies, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockTargetHttpsProxies, options ...Option) (bool, error) SetCertificateMapHook func(context.Context, *meta.Key, *computega.TargetHttpsProxiesSetCertificateMapRequest, *MockTargetHttpsProxies, ...Option) error SetSslCertificatesHook func(context.Context, *meta.Key, *computega.TargetHttpsProxiesSetSslCertificatesRequest, *MockTargetHttpsProxies, ...Option) error SetSslPolicyHook func(context.Context, *meta.Key, *computega.SslPolicyReference, *MockTargetHttpsProxies, ...Option) error SetUrlMapHook func(context.Context, *meta.Key, *computega.UrlMapReference, *MockTargetHttpsProxies, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockTargetHttpsProxies is the mock for TargetHttpsProxies.
func NewMockTargetHttpsProxies ¶
func NewMockTargetHttpsProxies(pr ProjectRouter, objs map[meta.Key]*MockTargetHttpsProxiesObj) *MockTargetHttpsProxies
NewMockTargetHttpsProxies returns a new mock for TargetHttpsProxies.
func (*MockTargetHttpsProxies) Delete ¶
func (m *MockTargetHttpsProxies) Delete(ctx context.Context, key *meta.Key, options ...Option) error
Delete is a mock for deleting the object.
func (*MockTargetHttpsProxies) Get ¶
func (m *MockTargetHttpsProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetHttpsProxy, error)
Get returns the object from the mock.
func (*MockTargetHttpsProxies) Insert ¶
func (m *MockTargetHttpsProxies) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetHttpsProxy, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockTargetHttpsProxies) List ¶
func (m *MockTargetHttpsProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.TargetHttpsProxy, error)
List all of the objects in the mock.
func (*MockTargetHttpsProxies) Obj ¶
func (m *MockTargetHttpsProxies) Obj(o *computega.TargetHttpsProxy) *MockTargetHttpsProxiesObj
Obj wraps the object for use in the mock.
func (*MockTargetHttpsProxies) SetCertificateMap ¶ added in v1.20.0
func (m *MockTargetHttpsProxies) SetCertificateMap(ctx context.Context, key *meta.Key, arg0 *computega.TargetHttpsProxiesSetCertificateMapRequest, options ...Option) error
SetCertificateMap is a mock for the corresponding method.
func (*MockTargetHttpsProxies) SetSslCertificates ¶
func (m *MockTargetHttpsProxies) SetSslCertificates(ctx context.Context, key *meta.Key, arg0 *computega.TargetHttpsProxiesSetSslCertificatesRequest, options ...Option) error
SetSslCertificates is a mock for the corresponding method.
func (*MockTargetHttpsProxies) SetSslPolicy ¶
func (m *MockTargetHttpsProxies) SetSslPolicy(ctx context.Context, key *meta.Key, arg0 *computega.SslPolicyReference, options ...Option) error
SetSslPolicy is a mock for the corresponding method.
type MockTargetHttpsProxiesObj ¶
type MockTargetHttpsProxiesObj struct {
Obj interface{}
}
MockTargetHttpsProxiesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockTargetHttpsProxiesObj) ToAlpha ¶
func (m *MockTargetHttpsProxiesObj) ToAlpha() *computealpha.TargetHttpsProxy
ToAlpha retrieves the given version of the object.
func (*MockTargetHttpsProxiesObj) ToBeta ¶
func (m *MockTargetHttpsProxiesObj) ToBeta() *computebeta.TargetHttpsProxy
ToBeta retrieves the given version of the object.
func (*MockTargetHttpsProxiesObj) ToGA ¶
func (m *MockTargetHttpsProxiesObj) ToGA() *computega.TargetHttpsProxy
ToGA retrieves the given version of the object.
type MockTargetPools ¶
type MockTargetPools struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockTargetPoolsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockTargetPools, options ...Option) (bool, *computega.TargetPool, error) ListHook func(ctx context.Context, region string, fl *filter.F, m *MockTargetPools, options ...Option) (bool, []*computega.TargetPool, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.TargetPool, m *MockTargetPools, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockTargetPools, options ...Option) (bool, error) AddInstanceHook func(context.Context, *meta.Key, *computega.TargetPoolsAddInstanceRequest, *MockTargetPools, ...Option) error RemoveInstanceHook func(context.Context, *meta.Key, *computega.TargetPoolsRemoveInstanceRequest, *MockTargetPools, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockTargetPools is the mock for TargetPools.
func NewMockTargetPools ¶
func NewMockTargetPools(pr ProjectRouter, objs map[meta.Key]*MockTargetPoolsObj) *MockTargetPools
NewMockTargetPools returns a new mock for TargetPools.
func (*MockTargetPools) AddInstance ¶
func (m *MockTargetPools) AddInstance(ctx context.Context, key *meta.Key, arg0 *computega.TargetPoolsAddInstanceRequest, options ...Option) error
AddInstance is a mock for the corresponding method.
func (*MockTargetPools) Get ¶
func (m *MockTargetPools) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetPool, error)
Get returns the object from the mock.
func (*MockTargetPools) Insert ¶
func (m *MockTargetPools) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetPool, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockTargetPools) List ¶
func (m *MockTargetPools) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.TargetPool, error)
List all of the objects in the mock in the given region.
func (*MockTargetPools) Obj ¶
func (m *MockTargetPools) Obj(o *computega.TargetPool) *MockTargetPoolsObj
Obj wraps the object for use in the mock.
func (*MockTargetPools) RemoveInstance ¶
func (m *MockTargetPools) RemoveInstance(ctx context.Context, key *meta.Key, arg0 *computega.TargetPoolsRemoveInstanceRequest, options ...Option) error
RemoveInstance is a mock for the corresponding method.
type MockTargetPoolsObj ¶
type MockTargetPoolsObj struct {
Obj interface{}
}
MockTargetPoolsObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockTargetPoolsObj) ToGA ¶
func (m *MockTargetPoolsObj) ToGA() *computega.TargetPool
ToGA retrieves the given version of the object.
type MockTargetTcpProxies ¶ added in v1.17.0
type MockTargetTcpProxies struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockTargetTcpProxiesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockTargetTcpProxies, options ...Option) (bool, *computega.TargetTcpProxy, error) ListHook func(ctx context.Context, fl *filter.F, m *MockTargetTcpProxies, options ...Option) (bool, []*computega.TargetTcpProxy, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.TargetTcpProxy, m *MockTargetTcpProxies, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockTargetTcpProxies, options ...Option) (bool, error) SetBackendServiceHook func(context.Context, *meta.Key, *computega.TargetTcpProxiesSetBackendServiceRequest, *MockTargetTcpProxies, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockTargetTcpProxies is the mock for TargetTcpProxies.
func NewMockTargetTcpProxies ¶ added in v1.17.0
func NewMockTargetTcpProxies(pr ProjectRouter, objs map[meta.Key]*MockTargetTcpProxiesObj) *MockTargetTcpProxies
NewMockTargetTcpProxies returns a new mock for TargetTcpProxies.
func (*MockTargetTcpProxies) Get ¶ added in v1.17.0
func (m *MockTargetTcpProxies) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetTcpProxy, error)
Get returns the object from the mock.
func (*MockTargetTcpProxies) Insert ¶ added in v1.17.0
func (m *MockTargetTcpProxies) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetTcpProxy, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockTargetTcpProxies) List ¶ added in v1.17.0
func (m *MockTargetTcpProxies) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.TargetTcpProxy, error)
List all of the objects in the mock.
func (*MockTargetTcpProxies) Obj ¶ added in v1.17.0
func (m *MockTargetTcpProxies) Obj(o *computega.TargetTcpProxy) *MockTargetTcpProxiesObj
Obj wraps the object for use in the mock.
func (*MockTargetTcpProxies) SetBackendService ¶ added in v1.17.0
func (m *MockTargetTcpProxies) SetBackendService(ctx context.Context, key *meta.Key, arg0 *computega.TargetTcpProxiesSetBackendServiceRequest, options ...Option) error
SetBackendService is a mock for the corresponding method.
type MockTargetTcpProxiesObj ¶
type MockTargetTcpProxiesObj struct {
Obj interface{}
}
MockTargetTcpProxiesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockTargetTcpProxiesObj) ToAlpha ¶
func (m *MockTargetTcpProxiesObj) ToAlpha() *computealpha.TargetTcpProxy
ToAlpha retrieves the given version of the object.
func (*MockTargetTcpProxiesObj) ToBeta ¶
func (m *MockTargetTcpProxiesObj) ToBeta() *computebeta.TargetTcpProxy
ToBeta retrieves the given version of the object.
func (*MockTargetTcpProxiesObj) ToGA ¶ added in v1.17.0
func (m *MockTargetTcpProxiesObj) ToGA() *computega.TargetTcpProxy
ToGA retrieves the given version of the object.
type MockTcpRoutes ¶ added in v1.25.0
type MockTcpRoutes struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockTcpRoutesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockTcpRoutes, options ...Option) (bool, *networkservicesga.TcpRoute, error) ListHook func(ctx context.Context, fl *filter.F, m *MockTcpRoutes, options ...Option) (bool, []*networkservicesga.TcpRoute, error) InsertHook func(ctx context.Context, key *meta.Key, obj *networkservicesga.TcpRoute, m *MockTcpRoutes, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockTcpRoutes, options ...Option) (bool, error) PatchHook func(context.Context, *meta.Key, *networkservicesga.TcpRoute, *MockTcpRoutes, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockTcpRoutes is the mock for TcpRoutes.
func NewMockTcpRoutes ¶ added in v1.25.0
func NewMockTcpRoutes(pr ProjectRouter, objs map[meta.Key]*MockTcpRoutesObj) *MockTcpRoutes
NewMockTcpRoutes returns a new mock for TcpRoutes.
func (*MockTcpRoutes) Get ¶ added in v1.25.0
func (m *MockTcpRoutes) Get(ctx context.Context, key *meta.Key, options ...Option) (*networkservicesga.TcpRoute, error)
Get returns the object from the mock.
func (*MockTcpRoutes) Insert ¶ added in v1.25.0
func (m *MockTcpRoutes) Insert(ctx context.Context, key *meta.Key, obj *networkservicesga.TcpRoute, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockTcpRoutes) List ¶ added in v1.25.0
func (m *MockTcpRoutes) List(ctx context.Context, fl *filter.F, options ...Option) ([]*networkservicesga.TcpRoute, error)
List all of the objects in the mock.
func (*MockTcpRoutes) Obj ¶ added in v1.25.0
func (m *MockTcpRoutes) Obj(o *networkservicesga.TcpRoute) *MockTcpRoutesObj
Obj wraps the object for use in the mock.
type MockTcpRoutesObj ¶ added in v1.25.0
type MockTcpRoutesObj struct {
Obj interface{}
}
MockTcpRoutesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockTcpRoutesObj) ToBeta ¶ added in v1.25.0
func (m *MockTcpRoutesObj) ToBeta() *networkservicesbeta.TcpRoute
ToBeta retrieves the given version of the object.
func (*MockTcpRoutesObj) ToGA ¶ added in v1.25.0
func (m *MockTcpRoutesObj) ToGA() *networkservicesga.TcpRoute
ToGA retrieves the given version of the object.
type MockUrlMaps ¶
type MockUrlMaps struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockUrlMapsObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error InsertError map[meta.Key]error DeleteError map[meta.Key]error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockUrlMaps, options ...Option) (bool, *computega.UrlMap, error) ListHook func(ctx context.Context, fl *filter.F, m *MockUrlMaps, options ...Option) (bool, []*computega.UrlMap, error) InsertHook func(ctx context.Context, key *meta.Key, obj *computega.UrlMap, m *MockUrlMaps, options ...Option) (bool, error) DeleteHook func(ctx context.Context, key *meta.Key, m *MockUrlMaps, options ...Option) (bool, error) UpdateHook func(context.Context, *meta.Key, *computega.UrlMap, *MockUrlMaps, ...Option) error // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockUrlMaps is the mock for UrlMaps.
func NewMockUrlMaps ¶
func NewMockUrlMaps(pr ProjectRouter, objs map[meta.Key]*MockUrlMapsObj) *MockUrlMaps
NewMockUrlMaps returns a new mock for UrlMaps.
func (*MockUrlMaps) Get ¶
func (m *MockUrlMaps) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.UrlMap, error)
Get returns the object from the mock.
func (*MockUrlMaps) Insert ¶
func (m *MockUrlMaps) Insert(ctx context.Context, key *meta.Key, obj *computega.UrlMap, options ...Option) error
Insert is a mock for inserting/creating a new object.
func (*MockUrlMaps) List ¶
func (m *MockUrlMaps) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.UrlMap, error)
List all of the objects in the mock.
func (*MockUrlMaps) Obj ¶
func (m *MockUrlMaps) Obj(o *computega.UrlMap) *MockUrlMapsObj
Obj wraps the object for use in the mock.
type MockUrlMapsObj ¶
type MockUrlMapsObj struct {
Obj interface{}
}
MockUrlMapsObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockUrlMapsObj) ToAlpha ¶
func (m *MockUrlMapsObj) ToAlpha() *computealpha.UrlMap
ToAlpha retrieves the given version of the object.
func (*MockUrlMapsObj) ToBeta ¶
func (m *MockUrlMapsObj) ToBeta() *computebeta.UrlMap
ToBeta retrieves the given version of the object.
func (*MockUrlMapsObj) ToGA ¶
func (m *MockUrlMapsObj) ToGA() *computega.UrlMap
ToGA retrieves the given version of the object.
type MockZones ¶
type MockZones struct { Lock sync.Mutex ProjectRouter ProjectRouter // Objects maintained by the mock. Objects map[meta.Key]*MockZonesObj // If an entry exists for the given key and operation, then the error // will be returned instead of the operation. GetError map[meta.Key]error ListError *error // xxxHook allow you to intercept the standard processing of the mock in // order to add your own logic. Return (true, _, _) to prevent the normal // execution flow of the mock. Return (false, nil, nil) to continue with // normal mock behavior/ after the hook function executes. GetHook func(ctx context.Context, key *meta.Key, m *MockZones, options ...Option) (bool, *computega.Zone, error) ListHook func(ctx context.Context, fl *filter.F, m *MockZones, options ...Option) (bool, []*computega.Zone, error) // X is extra state that can be used as part of the mock. Generated code // will not use this field. X interface{} }
MockZones is the mock for Zones.
func NewMockZones ¶
func NewMockZones(pr ProjectRouter, objs map[meta.Key]*MockZonesObj) *MockZones
NewMockZones returns a new mock for Zones.
func (*MockZones) Get ¶
func (m *MockZones) Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Zone, error)
Get returns the object from the mock.
type MockZonesObj ¶
type MockZonesObj struct {
Obj interface{}
}
MockZonesObj is used to store the various object versions in the shared map of mocked objects. This allows for multiple API versions to co-exist and share the same "view" of the objects in the backend.
func (*MockZonesObj) ToGA ¶
func (m *MockZonesObj) ToGA() *computega.Zone
ToGA retrieves the given version of the object.
type NetworkEndpointGroups ¶
type NetworkEndpointGroups interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.NetworkEndpointGroup, error) List(ctx context.Context, zone string, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointGroup, error) Insert(ctx context.Context, key *meta.Key, obj *computega.NetworkEndpointGroup, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computega.NetworkEndpointGroup, error) AttachNetworkEndpoints(context.Context, *meta.Key, *computega.NetworkEndpointGroupsAttachEndpointsRequest, ...Option) error DetachNetworkEndpoints(context.Context, *meta.Key, *computega.NetworkEndpointGroupsDetachEndpointsRequest, ...Option) error ListNetworkEndpoints(context.Context, *meta.Key, *computega.NetworkEndpointGroupsListEndpointsRequest, *filter.F, ...Option) ([]*computega.NetworkEndpointWithHealthStatus, error) }
NetworkEndpointGroups is an interface that allows for mocking of NetworkEndpointGroups.
type NetworkTier ¶
type NetworkTier string
NetworkTier represents the Network Service Tier used by a resource
func NetworkTierGCEValueToType ¶
func NetworkTierGCEValueToType(s string) NetworkTier
NetworkTierGCEValueToType converts the value of the NetworkTier field of a GCE object to the NetworkTier type.
func (NetworkTier) ToGCEValue ¶
func (n NetworkTier) ToGCEValue() string
ToGCEValue converts NetworkTier to a string that we can populate the NetworkTier field of GCE objects, including ForwardingRules and Addresses.
type Networks ¶
type Networks interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Network, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Network, error) Insert(ctx context.Context, key *meta.Key, obj *computega.Network, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error }
Networks is an interface that allows for mocking of Networks.
type NopRateLimiter ¶
type NopRateLimiter struct { }
NopRateLimiter is a rate limiter that performs no rate limiting.
func (*NopRateLimiter) Accept ¶
func (*NopRateLimiter) Accept(context.Context, *RateLimitKey) error
Accept everything immediately.
func (*NopRateLimiter) Observe ¶ added in v1.21.0
func (*NopRateLimiter) Observe(context.Context, error, *RateLimitKey)
Observe does nothing.
type Option ¶ added in v1.25.0
type Option interface {
// contains filtered or unexported methods
}
Option are optional parameters to the generated methods.
func ForceProjectID ¶ added in v1.25.0
ForceProjectID forces the projectID to be used in the call to be the one specified. This ignores the default routing done by the ProjectRouter.
type ProjectRouter ¶
type ProjectRouter interface { // ProjectID returns the project ID (non-numeric) to be used for a call // to an API (version,service). Example tuples: ("ga", "ForwardingRules"), // ("alpha", "GlobalAddresses"). // // This allows for plumbing different service calls to the appropriate // project, for instance, networking services to a separate project // than instance management. ProjectID(ctx context.Context, version meta.Version, service string) string }
ProjectRouter routes service calls to the appropriate GCE project.
type Projects ¶
type Projects interface { // ProjectsOps is an interface with additional non-CRUD type methods. // This interface is expected to be implemented by hand (non-autogenerated). ProjectsOps }
Projects is an interface that allows for mocking of Projects.
type ProjectsOps ¶
type ProjectsOps interface { Get(ctx context.Context, projectID string) (*compute.Project, error) SetCommonInstanceMetadata(ctx context.Context, projectID string, m *compute.Metadata) error }
ProjectsOps is the manually implemented methods for the Projects service.
type RateLimitKey ¶
type RateLimitKey = CallContextKey
RateLimitKey is a key identifying the operation to be rate limited. The rate limit queue will be determined based on the contents of RateKey.
This type will be removed in a future release. Please change all references to CallContextKey.
type RateLimiter ¶
type RateLimiter interface { // Accept uses the RateLimitKey to derive a sleep time for the calling // goroutine. This call will block until the operation is ready for // execution. // // Accept returns an error if the given context ctx was canceled // while waiting for acceptance into the queue. Accept(ctx context.Context, key *RateLimitKey) error // Observe uses the RateLimitKey to handle response results, which may affect // the sleep time for the Accept function. Observe(ctx context.Context, err error, key *RateLimitKey) }
RateLimiter is the interface for a rate limiting policy.
type RegionBackendServices ¶
type RegionBackendServices interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.BackendService, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.BackendService, error) Insert(ctx context.Context, key *meta.Key, obj *computega.BackendService, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error GetHealth(context.Context, *meta.Key, *computega.ResourceGroupReference, ...Option) (*computega.BackendServiceGroupHealth, error) Patch(context.Context, *meta.Key, *computega.BackendService, ...Option) error SetSecurityPolicy(context.Context, *meta.Key, *computega.SecurityPolicyReference, ...Option) error Update(context.Context, *meta.Key, *computega.BackendService, ...Option) error }
RegionBackendServices is an interface that allows for mocking of RegionBackendServices.
type RegionDisks ¶
type RegionDisks interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Disk, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.Disk, error) Insert(ctx context.Context, key *meta.Key, obj *computega.Disk, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Resize(context.Context, *meta.Key, *computega.RegionDisksResizeRequest, ...Option) error }
RegionDisks is an interface that allows for mocking of RegionDisks.
type RegionHealthChecks ¶
type RegionHealthChecks interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.HealthCheck, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.HealthCheck, error) Insert(ctx context.Context, key *meta.Key, obj *computega.HealthCheck, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Update(context.Context, *meta.Key, *computega.HealthCheck, ...Option) error }
RegionHealthChecks is an interface that allows for mocking of RegionHealthChecks.
type RegionNetworkEndpointGroups ¶ added in v1.29.0
type RegionNetworkEndpointGroups interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.NetworkEndpointGroup, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.NetworkEndpointGroup, error) Insert(ctx context.Context, key *meta.Key, obj *computega.NetworkEndpointGroup, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AttachNetworkEndpoints(context.Context, *meta.Key, *computega.RegionNetworkEndpointGroupsAttachEndpointsRequest, ...Option) error DetachNetworkEndpoints(context.Context, *meta.Key, *computega.RegionNetworkEndpointGroupsDetachEndpointsRequest, ...Option) error ListNetworkEndpoints(context.Context, *meta.Key, *filter.F, ...Option) ([]*computega.NetworkEndpointWithHealthStatus, error) }
RegionNetworkEndpointGroups is an interface that allows for mocking of RegionNetworkEndpointGroups.
type RegionSslCertificates ¶
type RegionSslCertificates interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.SslCertificate, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.SslCertificate, error) Insert(ctx context.Context, key *meta.Key, obj *computega.SslCertificate, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error }
RegionSslCertificates is an interface that allows for mocking of RegionSslCertificates.
type RegionSslPolicies ¶ added in v1.25.0
type RegionSslPolicies interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.SslPolicy, error) Insert(ctx context.Context, key *meta.Key, obj *computega.SslPolicy, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error }
RegionSslPolicies is an interface that allows for mocking of RegionSslPolicies.
type RegionTargetHttpProxies ¶
type RegionTargetHttpProxies interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetHttpProxy, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.TargetHttpProxy, error) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetHttpProxy, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error SetUrlMap(context.Context, *meta.Key, *computega.UrlMapReference, ...Option) error }
RegionTargetHttpProxies is an interface that allows for mocking of RegionTargetHttpProxies.
type RegionTargetHttpsProxies ¶
type RegionTargetHttpsProxies interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetHttpsProxy, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.TargetHttpsProxy, error) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetHttpsProxy, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Patch(context.Context, *meta.Key, *computega.TargetHttpsProxy, ...Option) error SetSslCertificates(context.Context, *meta.Key, *computega.RegionTargetHttpsProxiesSetSslCertificatesRequest, ...Option) error SetUrlMap(context.Context, *meta.Key, *computega.UrlMapReference, ...Option) error }
RegionTargetHttpsProxies is an interface that allows for mocking of RegionTargetHttpsProxies.
type RegionUrlMaps ¶
type RegionUrlMaps interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.UrlMap, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.UrlMap, error) Insert(ctx context.Context, key *meta.Key, obj *computega.UrlMap, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Update(context.Context, *meta.Key, *computega.UrlMap, ...Option) error }
RegionUrlMaps is an interface that allows for mocking of RegionUrlMaps.
type Regions ¶
type Regions interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Region, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Region, error) }
Regions is an interface that allows for mocking of Regions.
type ResourceID ¶
type ResourceID struct { ProjectID string // APIGroup identifies the API Group of the resource. APIGroup meta.APIGroup Resource string Key *meta.Key }
ResourceID identifies a GCE resource as parsed from compute resource URL.
func NewAddressesResourceID ¶
func NewAddressesResourceID(project, region, name string) *ResourceID
NewAddressesResourceID creates a ResourceID for the Addresses resource.
func NewBackendServicesResourceID ¶
func NewBackendServicesResourceID(project, name string) *ResourceID
NewBackendServicesResourceID creates a ResourceID for the BackendServices resource.
func NewDisksResourceID ¶
func NewDisksResourceID(project, zone, name string) *ResourceID
NewDisksResourceID creates a ResourceID for the Disks resource.
func NewFirewallsResourceID ¶
func NewFirewallsResourceID(project, name string) *ResourceID
NewFirewallsResourceID creates a ResourceID for the Firewalls resource.
func NewForwardingRulesResourceID ¶
func NewForwardingRulesResourceID(project, region, name string) *ResourceID
NewForwardingRulesResourceID creates a ResourceID for the ForwardingRules resource.
func NewGlobalAddressesResourceID ¶
func NewGlobalAddressesResourceID(project, name string) *ResourceID
NewGlobalAddressesResourceID creates a ResourceID for the GlobalAddresses resource.
func NewGlobalForwardingRulesResourceID ¶
func NewGlobalForwardingRulesResourceID(project, name string) *ResourceID
NewGlobalForwardingRulesResourceID creates a ResourceID for the GlobalForwardingRules resource.
func NewGlobalNetworkEndpointGroupsResourceID ¶ added in v1.25.0
func NewGlobalNetworkEndpointGroupsResourceID(project, name string) *ResourceID
NewGlobalNetworkEndpointGroupsResourceID creates a ResourceID for the GlobalNetworkEndpointGroups resource.
func NewHealthChecksResourceID ¶
func NewHealthChecksResourceID(project, name string) *ResourceID
NewHealthChecksResourceID creates a ResourceID for the HealthChecks resource.
func NewHttpHealthChecksResourceID ¶
func NewHttpHealthChecksResourceID(project, name string) *ResourceID
NewHttpHealthChecksResourceID creates a ResourceID for the HttpHealthChecks resource.
func NewHttpsHealthChecksResourceID ¶
func NewHttpsHealthChecksResourceID(project, name string) *ResourceID
NewHttpsHealthChecksResourceID creates a ResourceID for the HttpsHealthChecks resource.
func NewImagesResourceID ¶ added in v1.17.0
func NewImagesResourceID(project, name string) *ResourceID
NewImagesResourceID creates a ResourceID for the Images resource.
func NewInstanceGroupManagersResourceID ¶ added in v1.23.0
func NewInstanceGroupManagersResourceID(project, zone, name string) *ResourceID
NewInstanceGroupManagersResourceID creates a ResourceID for the InstanceGroupManagers resource.
func NewInstanceGroupsResourceID ¶
func NewInstanceGroupsResourceID(project, zone, name string) *ResourceID
NewInstanceGroupsResourceID creates a ResourceID for the InstanceGroups resource.
func NewInstanceTemplatesResourceID ¶ added in v1.23.0
func NewInstanceTemplatesResourceID(project, name string) *ResourceID
NewInstanceTemplatesResourceID creates a ResourceID for the InstanceTemplates resource.
func NewInstancesResourceID ¶
func NewInstancesResourceID(project, zone, name string) *ResourceID
NewInstancesResourceID creates a ResourceID for the Instances resource.
func NewMeshesResourceID ¶ added in v1.25.0
func NewMeshesResourceID(project, name string) *ResourceID
NewMeshesResourceID creates a ResourceID for the Meshes resource.
func NewNetworkEndpointGroupsResourceID ¶
func NewNetworkEndpointGroupsResourceID(project, zone, name string) *ResourceID
NewNetworkEndpointGroupsResourceID creates a ResourceID for the NetworkEndpointGroups resource.
func NewNetworkFirewallPoliciesResourceID ¶ added in v1.17.0
func NewNetworkFirewallPoliciesResourceID(project, name string) *ResourceID
NewNetworkFirewallPoliciesResourceID creates a ResourceID for the NetworkFirewallPolicies resource.
func NewNetworksResourceID ¶
func NewNetworksResourceID(project, name string) *ResourceID
NewNetworksResourceID creates a ResourceID for the Networks resource.
func NewProjectsResourceID ¶
func NewProjectsResourceID(project string) *ResourceID
NewProjectsResourceID creates a ResourceID for the Projects resource.
func NewRegionBackendServicesResourceID ¶
func NewRegionBackendServicesResourceID(project, region, name string) *ResourceID
NewRegionBackendServicesResourceID creates a ResourceID for the RegionBackendServices resource.
func NewRegionDisksResourceID ¶
func NewRegionDisksResourceID(project, region, name string) *ResourceID
NewRegionDisksResourceID creates a ResourceID for the RegionDisks resource.
func NewRegionHealthChecksResourceID ¶
func NewRegionHealthChecksResourceID(project, region, name string) *ResourceID
NewRegionHealthChecksResourceID creates a ResourceID for the RegionHealthChecks resource.
func NewRegionNetworkEndpointGroupsResourceID ¶ added in v1.29.0
func NewRegionNetworkEndpointGroupsResourceID(project, region, name string) *ResourceID
NewRegionNetworkEndpointGroupsResourceID creates a ResourceID for the RegionNetworkEndpointGroups resource.
func NewRegionNetworkFirewallPoliciesResourceID ¶ added in v1.17.0
func NewRegionNetworkFirewallPoliciesResourceID(project, region, name string) *ResourceID
NewRegionNetworkFirewallPoliciesResourceID creates a ResourceID for the RegionNetworkFirewallPolicies resource.
func NewRegionSslCertificatesResourceID ¶
func NewRegionSslCertificatesResourceID(project, region, name string) *ResourceID
NewRegionSslCertificatesResourceID creates a ResourceID for the RegionSslCertificates resource.
func NewRegionSslPoliciesResourceID ¶ added in v1.25.0
func NewRegionSslPoliciesResourceID(project, region, name string) *ResourceID
NewRegionSslPoliciesResourceID creates a ResourceID for the RegionSslPolicies resource.
func NewRegionTargetHttpProxiesResourceID ¶
func NewRegionTargetHttpProxiesResourceID(project, region, name string) *ResourceID
NewRegionTargetHttpProxiesResourceID creates a ResourceID for the RegionTargetHttpProxies resource.
func NewRegionTargetHttpsProxiesResourceID ¶
func NewRegionTargetHttpsProxiesResourceID(project, region, name string) *ResourceID
NewRegionTargetHttpsProxiesResourceID creates a ResourceID for the RegionTargetHttpsProxies resource.
func NewRegionUrlMapsResourceID ¶
func NewRegionUrlMapsResourceID(project, region, name string) *ResourceID
NewRegionUrlMapsResourceID creates a ResourceID for the RegionUrlMaps resource.
func NewRegionsResourceID ¶
func NewRegionsResourceID(project, name string) *ResourceID
NewRegionsResourceID creates a ResourceID for the Regions resource.
func NewRoutersResourceID ¶ added in v1.17.0
func NewRoutersResourceID(project, region, name string) *ResourceID
NewRoutersResourceID creates a ResourceID for the Routers resource.
func NewRoutesResourceID ¶
func NewRoutesResourceID(project, name string) *ResourceID
NewRoutesResourceID creates a ResourceID for the Routes resource.
func NewSecurityPoliciesResourceID ¶
func NewSecurityPoliciesResourceID(project, name string) *ResourceID
NewSecurityPoliciesResourceID creates a ResourceID for the SecurityPolicies resource.
func NewServiceAttachmentsResourceID ¶
func NewServiceAttachmentsResourceID(project, region, name string) *ResourceID
NewServiceAttachmentsResourceID creates a ResourceID for the ServiceAttachments resource.
func NewSslCertificatesResourceID ¶
func NewSslCertificatesResourceID(project, name string) *ResourceID
NewSslCertificatesResourceID creates a ResourceID for the SslCertificates resource.
func NewSslPoliciesResourceID ¶
func NewSslPoliciesResourceID(project, name string) *ResourceID
NewSslPoliciesResourceID creates a ResourceID for the SslPolicies resource.
func NewSubnetworksResourceID ¶
func NewSubnetworksResourceID(project, region, name string) *ResourceID
NewSubnetworksResourceID creates a ResourceID for the Subnetworks resource.
func NewTargetHttpProxiesResourceID ¶
func NewTargetHttpProxiesResourceID(project, name string) *ResourceID
NewTargetHttpProxiesResourceID creates a ResourceID for the TargetHttpProxies resource.
func NewTargetHttpsProxiesResourceID ¶
func NewTargetHttpsProxiesResourceID(project, name string) *ResourceID
NewTargetHttpsProxiesResourceID creates a ResourceID for the TargetHttpsProxies resource.
func NewTargetPoolsResourceID ¶
func NewTargetPoolsResourceID(project, region, name string) *ResourceID
NewTargetPoolsResourceID creates a ResourceID for the TargetPools resource.
func NewTargetTcpProxiesResourceID ¶
func NewTargetTcpProxiesResourceID(project, name string) *ResourceID
NewTargetTcpProxiesResourceID creates a ResourceID for the TargetTcpProxies resource.
func NewTcpRoutesResourceID ¶ added in v1.25.0
func NewTcpRoutesResourceID(project, name string) *ResourceID
NewTcpRoutesResourceID creates a ResourceID for the TcpRoutes resource.
func NewUrlMapsResourceID ¶
func NewUrlMapsResourceID(project, name string) *ResourceID
NewUrlMapsResourceID creates a ResourceID for the UrlMaps resource.
func NewZonesResourceID ¶
func NewZonesResourceID(project, name string) *ResourceID
NewZonesResourceID creates a ResourceID for the Zones resource.
func ParseResourceURL ¶
func ParseResourceURL(url string) (*ResourceID, error)
ParseResourceURL parses resource URLs of the following formats:
global/<res>/<name> regions/<region>/<res>/<name> zones/<zone>/<res>/<name> projects/<proj> projects/<proj>/global/<res>/<name> projects/<proj>/regions/<region>/<res>/<name> projects/<proj>/zones/<zone>/<res>/<name> [https://www.googleapis.com/<apigroup>/<ver>]/projects/<proj>/global/<res>/<name> [https://www.googleapis.com/<apigroup>/<ver>]/projects/<proj>/regions/<region>/<res>/<name> [https://www.googleapis.com/<apigroup>/<ver>]/projects/<proj>/zones/<zone>/<res>/<name> [https://<apigroup>.googleapis.com/<ver>]/projects/<proj>/global/<res>/<name> [https://<apigroup>.googleapis.com/<ver>]/projects/<proj>/regions/<region>/<res>/<name> [https://<apigroup>.googleapis.com/<ver>]/projects/<proj>/zones/<zone>/<res>/<name>
Note that ParseResourceURL can't round trip partial paths that do not include an API Group.
func (*ResourceID) Equal ¶
func (r *ResourceID) Equal(other *ResourceID) bool
Equal returns true if two resource IDs are equal.
func (*ResourceID) MapKey ¶ added in v1.24.0
func (r *ResourceID) MapKey() ResourceMapKey
MapKey returns a flat key that can be used for referencing in maps.
func (*ResourceID) RelativeResourceName ¶
func (r *ResourceID) RelativeResourceName() string
RelativeResourceName returns the relative resource name string representing this ResourceID. Deprecated: Use SelfLink instead
func (*ResourceID) ResourcePath ¶
func (r *ResourceID) ResourcePath() string
ResourcePath returns the resource path representing this ResourceID. Deprecated: Use SelfLink instead
func (*ResourceID) SelfLink ¶
func (r *ResourceID) SelfLink(ver meta.Version) string
SelfLink returns a URL representing the resource and defaults to Compute API Group if no API Group is specified.
func (*ResourceID) String ¶ added in v1.24.0
func (r *ResourceID) String() string
type ResourceMapKey ¶ added in v1.24.0
type ResourceMapKey struct { ProjectID string APIGroup meta.APIGroup Resource string Name string Zone string Region string }
ResourceMapKey is a flat ResourceID that can be used as a key in maps.
func (ResourceMapKey) ToID ¶ added in v1.24.0
func (rk ResourceMapKey) ToID() *ResourceID
type Routers ¶ added in v1.17.0
type Routers interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Router, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.Router, error) Insert(ctx context.Context, key *meta.Key, obj *computega.Router, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AggregatedList(ctx context.Context, fl *filter.F, options ...Option) (map[string][]*computega.Router, error) GetRouterStatus(context.Context, *meta.Key, ...Option) (*computega.RouterStatusResponse, error) Patch(context.Context, *meta.Key, *computega.Router, ...Option) error Preview(context.Context, *meta.Key, *computega.Router, ...Option) (*computega.RoutersPreviewResponse, error) }
Routers is an interface that allows for mocking of Routers.
type Routes ¶
type Routes interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Route, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.Route, error) Insert(ctx context.Context, key *meta.Key, obj *computega.Route, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error }
Routes is an interface that allows for mocking of Routes.
type Service ¶
type Service struct { GA *ga.Service Alpha *alpha.Service Beta *beta.Service NetworkServicesGA *networkservicesga.ProjectsLocationsService NetworkServicesBeta *networkservicesbeta.ProjectsLocationsService ProjectRouter ProjectRouter RateLimiter RateLimiter }
Service is the top-level adapter for all of the different compute API versions.
func NewService ¶ added in v1.25.0
func NewService(ctx context.Context, client *http.Client, pr ProjectRouter, rl RateLimiter) (*Service, error)
NewService returns a new Service instance initialized with from an HTTP client to the API endpoints.
func (*Service) WaitForCompletion ¶
WaitForCompletion of a long running operation. This will poll the state of GCE for the completion status of the given operation. genericOp can be one of alpha, beta, ga Operation types.
type ServiceAttachments ¶ added in v1.18.0
type ServiceAttachments interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.ServiceAttachment, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.ServiceAttachment, error) Insert(ctx context.Context, key *meta.Key, obj *computega.ServiceAttachment, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Patch(context.Context, *meta.Key, *computega.ServiceAttachment, ...Option) error }
ServiceAttachments is an interface that allows for mocking of ServiceAttachments.
type SingleProjectRouter ¶
type SingleProjectRouter struct {
ID string
}
SingleProjectRouter routes all service calls to the same project ID.
type SslCertificates ¶
type SslCertificates interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.SslCertificate, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.SslCertificate, error) Insert(ctx context.Context, key *meta.Key, obj *computega.SslCertificate, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error }
SslCertificates is an interface that allows for mocking of SslCertificates.
type SslPolicies ¶
type SslPolicies interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.SslPolicy, error) Insert(ctx context.Context, key *meta.Key, obj *computega.SslPolicy, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error }
SslPolicies is an interface that allows for mocking of SslPolicies.
type Subnetworks ¶
type Subnetworks interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.Subnetwork, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.Subnetwork, error) Insert(ctx context.Context, key *meta.Key, obj *computega.Subnetwork, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error ListUsable(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.UsableSubnetwork, error) Patch(context.Context, *meta.Key, *computega.Subnetwork, ...Option) error }
Subnetworks is an interface that allows for mocking of Subnetworks.
type TDBetaMeshes ¶ added in v1.25.0
type TDBetaMeshes struct {
// contains filtered or unexported fields
}
TDBetaMeshes is a simplifying adapter for the GCE Meshes.
func (*TDBetaMeshes) Get ¶ added in v1.25.0
func (g *TDBetaMeshes) Get(ctx context.Context, key *meta.Key, options ...Option) (*networkservicesbeta.Mesh, error)
Get the Mesh named by key.
func (*TDBetaMeshes) Insert ¶ added in v1.25.0
func (g *TDBetaMeshes) Insert(ctx context.Context, key *meta.Key, obj *networkservicesbeta.Mesh, options ...Option) error
Insert Mesh with key of value obj.
type TDBetaTcpRoutes ¶ added in v1.25.0
type TDBetaTcpRoutes struct {
// contains filtered or unexported fields
}
TDBetaTcpRoutes is a simplifying adapter for the GCE TcpRoutes.
func (*TDBetaTcpRoutes) Get ¶ added in v1.25.0
func (g *TDBetaTcpRoutes) Get(ctx context.Context, key *meta.Key, options ...Option) (*networkservicesbeta.TcpRoute, error)
Get the TcpRoute named by key.
func (*TDBetaTcpRoutes) Insert ¶ added in v1.25.0
func (g *TDBetaTcpRoutes) Insert(ctx context.Context, key *meta.Key, obj *networkservicesbeta.TcpRoute, options ...Option) error
Insert TcpRoute with key of value obj.
type TDMeshes ¶ added in v1.25.0
type TDMeshes struct {
// contains filtered or unexported fields
}
TDMeshes is a simplifying adapter for the GCE Meshes.
func (*TDMeshes) Get ¶ added in v1.25.0
func (g *TDMeshes) Get(ctx context.Context, key *meta.Key, options ...Option) (*networkservicesga.Mesh, error)
Get the Mesh named by key.
func (*TDMeshes) Insert ¶ added in v1.25.0
func (g *TDMeshes) Insert(ctx context.Context, key *meta.Key, obj *networkservicesga.Mesh, options ...Option) error
Insert Mesh with key of value obj.
type TDTcpRoutes ¶ added in v1.25.0
type TDTcpRoutes struct {
// contains filtered or unexported fields
}
TDTcpRoutes is a simplifying adapter for the GCE TcpRoutes.
func (*TDTcpRoutes) Get ¶ added in v1.25.0
func (g *TDTcpRoutes) Get(ctx context.Context, key *meta.Key, options ...Option) (*networkservicesga.TcpRoute, error)
Get the TcpRoute named by key.
func (*TDTcpRoutes) Insert ¶ added in v1.25.0
func (g *TDTcpRoutes) Insert(ctx context.Context, key *meta.Key, obj *networkservicesga.TcpRoute, options ...Option) error
Insert TcpRoute with key of value obj.
type TargetHttpProxies ¶
type TargetHttpProxies interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetHttpProxy, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.TargetHttpProxy, error) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetHttpProxy, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error SetUrlMap(context.Context, *meta.Key, *computega.UrlMapReference, ...Option) error }
TargetHttpProxies is an interface that allows for mocking of TargetHttpProxies.
type TargetHttpsProxies ¶
type TargetHttpsProxies interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetHttpsProxy, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.TargetHttpsProxy, error) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetHttpsProxy, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error SetCertificateMap(context.Context, *meta.Key, *computega.TargetHttpsProxiesSetCertificateMapRequest, ...Option) error SetSslCertificates(context.Context, *meta.Key, *computega.TargetHttpsProxiesSetSslCertificatesRequest, ...Option) error SetSslPolicy(context.Context, *meta.Key, *computega.SslPolicyReference, ...Option) error SetUrlMap(context.Context, *meta.Key, *computega.UrlMapReference, ...Option) error }
TargetHttpsProxies is an interface that allows for mocking of TargetHttpsProxies.
type TargetPools ¶
type TargetPools interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetPool, error) List(ctx context.Context, region string, fl *filter.F, options ...Option) ([]*computega.TargetPool, error) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetPool, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error AddInstance(context.Context, *meta.Key, *computega.TargetPoolsAddInstanceRequest, ...Option) error RemoveInstance(context.Context, *meta.Key, *computega.TargetPoolsRemoveInstanceRequest, ...Option) error }
TargetPools is an interface that allows for mocking of TargetPools.
type TargetTcpProxies ¶ added in v1.17.0
type TargetTcpProxies interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.TargetTcpProxy, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.TargetTcpProxy, error) Insert(ctx context.Context, key *meta.Key, obj *computega.TargetTcpProxy, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error SetBackendService(context.Context, *meta.Key, *computega.TargetTcpProxiesSetBackendServiceRequest, ...Option) error }
TargetTcpProxies is an interface that allows for mocking of TargetTcpProxies.
type TcpRoutes ¶ added in v1.25.0
type TcpRoutes interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*networkservicesga.TcpRoute, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*networkservicesga.TcpRoute, error) Insert(ctx context.Context, key *meta.Key, obj *networkservicesga.TcpRoute, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Patch(context.Context, *meta.Key, *networkservicesga.TcpRoute, ...Option) error }
TcpRoutes is an interface that allows for mocking of TcpRoutes.
type TickerRateLimiter ¶ added in v1.28.0
type TickerRateLimiter struct {
// contains filtered or unexported fields
}
TickerRateLimiter uses time.Ticker to spread Accepts over time.
Concurrent calls to Accept will block on the same channel. It is not guaranteed what caller will be unblocked first.
func NewTickerRateLimiter ¶ added in v1.28.0
func NewTickerRateLimiter(limit int, interval time.Duration) *TickerRateLimiter
NewTickerRateLimiter creates a new TickerRateLimiter which will space Accept calls at least interval/limit time apart.
For example, limit=4 interval=time.Minute will unblock a single Accept call every 15 seconds.
func (*TickerRateLimiter) Accept ¶ added in v1.28.0
func (t *TickerRateLimiter) Accept(ctx context.Context, rlk *RateLimitKey) error
Accept will block until a time, specified when creating TickerRateLimiter, passes since the last call to Accept.
func (*TickerRateLimiter) Observe ¶ added in v1.28.0
func (*TickerRateLimiter) Observe(context.Context, error, *RateLimitKey)
Observe does nothing.
type UrlMaps ¶
type UrlMaps interface { Get(ctx context.Context, key *meta.Key, options ...Option) (*computega.UrlMap, error) List(ctx context.Context, fl *filter.F, options ...Option) ([]*computega.UrlMap, error) Insert(ctx context.Context, key *meta.Key, obj *computega.UrlMap, options ...Option) error Delete(ctx context.Context, key *meta.Key, options ...Option) error Update(context.Context, *meta.Key, *computega.UrlMap, ...Option) error }
UrlMaps is an interface that allows for mocking of UrlMaps.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
See MutableResource.ImpliedVersion() for resource version conversion semantics.
|
See MutableResource.ImpliedVersion() for resource version conversion semantics. |
Package filter encapsulates the filter argument to compute API calls.
|
Package filter encapsulates the filter argument to compute API calls. |
Generator for GCE compute wrapper code.
|
Generator for GCE compute wrapper code. |
Package meta contains the meta description of the GCE cloud types to generate code for.
|
Package meta contains the meta description of the GCE cloud types to generate code for. |
Package mock encapsulates mocks for testing GCE provider functionality.
|
Package mock encapsulates mocks for testing GCE provider functionality. |
Package rgraph provides support generic orchestration routines for complex GCE resource graphs.
|
Package rgraph provides support generic orchestration routines for complex GCE resource graphs. |
exec
Package exec implements execution of a graph of Action and Events.
|
Package exec implements execution of a graph of Action and Events. |
testing/ez
Package ez is a utility to create complex resource graphs for testing from a concise description by use of naming conventions and default values.
|
Package ez is a utility to create complex resource graphs for testing from a concise description by use of naming conventions and default values. |